Thu 07 Sep 2006 07:52:32 AM UTC, original submission:
Just a small patch to enable compilation and usage under cygwin.
Looks as if it works fine (at least for basic usage).
Thanks for all the contributors,
Loïc
diff -r -c screen-4.0.2/configure screen-4.0.2-new/configure
- screen-4.0.2/configure Fri Dec 5 14:46:53 2003
--- screen-4.0.2-new/configure Thu Sep 7 09:06:15 2006
***************
--- 4260,4266 ----
echo "- your fifos are not usable" 1>&6
fi
+ killall conftest
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f /tmp/conftest*
diff -r -c screen-4.0.2/misc.c screen-4.0.2-new/misc.c
- screen-4.0.2/misc.c Fri Dec 5 14:45:41 2003
--- screen-4.0.2-new/misc.c Thu Sep 7 09:10:54 2006
***************
*/
# endif /* NEEDSETENV */
#else /* USESETENV */
! # if defined(linux) || defined(_convex_) || (BSD >= 199103)
setenv(var, value, 1);
# else
setenv(var, value);
--- 613,619 ----
*/
# endif /* NEEDSETENV */
#else /* USESETENV */
! # if defined(_CYGWIN_) || defined(linux) || defined(_convex_) || (BSD >= 199103)
setenv(var, value, 1);
# else
setenv(var, value);
diff -r -c screen-4.0.2/pty.c screen-4.0.2-new/pty.c
- screen-4.0.2/pty.c Mon Sep 8 16:26:18 2003
--- screen-4.0.2-new/pty.c Thu Sep 7 09:13:32 2006
***************
#endif
/* for solaris 2.1, Unixware (SVR4.2) and possibly others */
! #ifdef HAVE_SVR4_PTYS
# include <sys/stropts.h>
#endif
--- 34,40 ----
#endif
/* for solaris 2.1, Unixware (SVR4.2) and possibly others */
! #if defined(HAVE_SVR4_PTYS) && !defined(_CYGWIN_)
# include <sys/stropts.h>
#endif
diff -r -c screen-4.0.2/utmp.c screen-4.0.2-new/utmp.c
- screen-4.0.2/utmp.c Mon Sep 8 16:27:17 2003
--- screen-4.0.2-new/utmp.c Thu Sep 7 09:12:17 2006
***************
struct utmp *u;
{
u->ut_type = DEAD_PROCESS;
! #if !defined(linux) || defined(EMPTY)
u->ut_exit.e_termination = 0;
u->ut_exit.e_exit = 0;
#endif
--- 589,595 ----
struct utmp *u;
{
u->ut_type = DEAD_PROCESS;
! #if (!defined(_CYGWIN_) && !defined(linux)) || defined(EMPTY)
u->ut_exit.e_termination = 0;
u->ut_exit.e_exit = 0;
#endif
|