diff -urN screen-4.0.2/configure screen-4.0.2.cygwin/configure --- screen-4.0.2/configure 2003-12-05 22:46:53.000000000 +0900 +++ screen-4.0.2.cygwin/configure 2007-03-21 13:27:25.202073400 +0900 @@ -4156,6 +4156,7 @@ fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +#if 0 { echo "$as_me:$LINENO: checking fifos..." >&5 echo "$as_me: checking fifos..." >&6;} if test "$cross_compiling" = yes; then @@ -4236,6 +4237,7 @@ exit(1); exit(0); } +#endif _ACEOF rm -f conftest$ac_exeext diff -urN screen-4.0.2/misc.c screen-4.0.2.cygwin/misc.c --- screen-4.0.2/misc.c 2003-12-05 22:45:41.000000000 +0900 +++ screen-4.0.2.cygwin/misc.c 2007-03-21 13:33:30.661221900 +0900 @@ -613,7 +613,7 @@ */ # endif /* NEEDSETENV */ #else /* USESETENV */ -# if defined(linux) || defined(__convex__) || (BSD >= 199103) +# if defined(linux) || defined(__convex__) || (BSD >= 199103) || defined(__CYGWIN__) setenv(var, value, 1); # else setenv(var, value); diff -urN screen-4.0.2/pty.c screen-4.0.2.cygwin/pty.c --- screen-4.0.2/pty.c 2003-09-08 23:26:18.000000000 +0900 +++ screen-4.0.2.cygwin/pty.c 2007-03-21 13:40:14.275615400 +0900 @@ -34,7 +34,7 @@ #endif /* for solaris 2.1, Unixware (SVR4.2) and possibly others */ -#ifdef HAVE_SVR4_PTYS +#if defined(HAVE_SVR4_PTYS) && !defined(__CYGWIN__) # include #endif Files screen-4.0.2/screen.exe and screen-4.0.2.cygwin/screen.exe differ diff -urN screen-4.0.2/utmp.c screen-4.0.2.cygwin/utmp.c --- screen-4.0.2/utmp.c 2003-09-08 23:27:17.000000000 +0900 +++ screen-4.0.2.cygwin/utmp.c 2007-03-21 13:37:55.204253900 +0900 @@ -589,7 +589,7 @@ struct utmp *u; { u->ut_type = DEAD_PROCESS; -#if !defined(linux) || defined(EMPTY) +#if !( defined(linux) || defined(__CYGWIN__) ) || defined(EMPTY) u->ut_exit.e_termination = 0; u->ut_exit.e_exit = 0; #endif