Tue 30 Nov 2004 11:52:45 AM UTC, original submission:
Here is a patch that makes it compile and work on Cygwin:
user@localhost:/cygdrive/c/GNU> diff -r screen-4.0.2 screen-4.0.2-patched/
diff -r screen-4.0.2/Makefile screen-4.0.2-patched/Makefile
2,3c2
< rm -f config.cache
< sh ./configure
---
> sh ./configure
Only in screen-4.0.2-patched/: bin
Only in screen-4.0.2-patched/: config.log
Only in screen-4.0.2-patched/doc: info
Only in screen-4.0.2-patched/doc: man
diff -r screen-4.0.2/misc.c screen-4.0.2-patched/misc.c
616c616
< # if defined(linux) || defined(_convex_) || (BSD >= 199103)
---
> # if defined(linux) || defined(_convex_) || (BSD >= 199103) || defined(_CYGWIN_)
diff -r screen-4.0.2/pty.c screen-4.0.2-patched/pty.c
37c37
< #ifdef HAVE_SVR4_PTYS
---
> #if defined(HAVE_SVR4_PTYS) && !defined(_CYGWIN_)
Only in screen-4.0.2-patched/: screen.exe
Only in screen-4.0.2-patched/: share
diff -r screen-4.0.2/utmp.c screen-4.0.2-patched/utmp.c
105c105
< # if defined(GETUTENT) && (!defined(SVR4) || defined(__hpux))
---
> # if defined(GETUTENT) && (!defined(SVR4) || defined(_hpux)) && ! defined(__CYGWIN_)
583a584
> #ifndef _CYGWIN_
584a586,588
> #else
> return 1;
> #endif
592c596
< #if !defined(linux) || defined(EMPTY)
---
> #if (!defined(linux) || defined(EMPTY)) && !defined(_CYGWIN_)
user@localhost:/cygdrive/c/GNU> uname -a
CYGWIN_NT-5.0 localhost 1.5.12(0.116/4/2) 2004-11-10 08:34 i686 unknown unknown Cygwin
The original homepage that was hosting this patch seems be to have been removed, no idea why.
|