In preparation for release of 2.8.3, I built a cygwin port, which I
haven't done for a while. I see that a previous patch I submitted
for this wasn't applied. This is now updated against dev.22. I also
corrected some screen handling problems when built with SLang and
updated the INSTALLATION file to reflect building under cygwin.

For the DJGPP port, Gisle Vanem suggested to me that we use select_s()
from WATT-32, rather than select() from DJGPP. This seems to speed
the binary up a bit. The DJGPP port still has a delay at the end of a
download before closing the socket.
                             Doug

--- lynx2-8-3/INSTALLATION      Sun Mar 12 16:38:38 2000
+++ lynx2-8-3/INSTALLATION.new  Sun Mar 19 18:50:12 2000
@@ -681,11 +681,12 @@
     to use the configure script described above for Unix.  Type, for example,
     "./configure --with-screen=ncurses --with-libz" in a Dos window running the
     cygwin bash$ shell.  You also have the choice of using either pdcurses or
-    slang.  See "http://www.flora.org/lynx-dev/html/month1097/msg00559.html"
-    and "http://www.flora.org/lynx-dev/html/month1097/msg00186.html", and other
-    messages along those threads.  You will have to make a minor alteration to
-    HTTCP.c (change delay to 30 seconds) and modify HTFILE.c (concerning
-    getgroups).  You will need a launch program to call helper applications.
+    slang.  You will need a launch program such as sh.exe to call helper
+    applications. Paths may need to be in cygwin style, rather than Windows
+    style (e.g., TMPDIR=/d/cygwin/tmp, rather than TMPDIR=d:\cygwin\tmp).  You
+    will not be able to use the cygwin1.dll that comes with the standard b20
+    distribution of cygwin. Substitute the cygwin1.dll from:
+    "ftp://sourceware.cygnus.com/pub/cygwin/snapshot-19990115/cygwin1-19990115.dll.gz"
 
 Visual C++:
     You must have compiled zlib and PDCurses with the -MT (threaded code)
--- lynx2-8-3/src/LYCurses.c    Sun Mar 12 16:38:38 2000
+++ lynx2-8-3/src/LYCurses.c.new        Sun Mar 19 18:37:52 2000
@@ -1022,7 +1022,7 @@
      */
     if(LYCursesON == TRUE)     {
         lynx_enable_mouse (0);
-#ifndef WIN_EX /* @@@ */
+#if (!defined(WIN_EX) || defined(__CYGWIN__))  /* @@@ */
         endwin();      /* stop curses */
 #endif
     }
--- lynx2-8-3/src/LYMainLoop.c  Sun Mar 12 16:38:38 2000
+++ lynx2-8-3/src/LYMainLoop.c.new      Sat Mar 18 22:50:40 2000
@@ -97,7 +97,6 @@
 }
 #endif
 
-#ifdef CJK_EX
 #ifdef WIN_EX
 
 PRIVATE char *str_sjis(char *to, char *from)
@@ -122,8 +121,6 @@
 }
 
 #endif /* WIN_EX */
-
-#endif /* CJK_EX */
 
 
 #ifdef SH_EX  /* 1998/10/30 (Fri) 10:06:47 */
--- lynx2-8-3/configure Sun Mar 12 16:38:38 2000
+++ lynx2-8-3/configure.new     Sat Mar 18 22:42:06 2000
@@ -5320,6 +5320,7 @@
        ;;
 cygwin*)
        PROG_EXT=".exe"
+       LIBS="$LIBS -luser32"
        ;;
 dgux*)
        CFLAGS="$CFLAGS -DDGUX"
--- lynx2-8-3/configure.in      Sun Mar 12 16:38:38 2000
+++ lynx2-8-3/configure.in.new  Sat Mar 18 23:28:06 2000
@@ -270,6 +270,7 @@
        ;;
 cygwin*)
        PROG_EXT=".exe"
+       LIBS="$LIBS -luser32"
        ;;
 dgux*)
        CFLAGS="$CFLAGS -DDGUX"
--- lynx2-8-3/WWW/Library/Implementation/www_tcp.h      Sun Mar 12 16:38:38 2000
+++ lynx2-8-3/WWW/Library/Implementation/www_tcp.h.new  Sun Mar 19 11:44:48 2000
@@ -112,6 +112,11 @@
 #define AIX
 #endif /* _AIX */
 
+#ifdef __CYGWIN__
+#define _WINDOWS_NSL
+#define WIN_EX
+#endif /* __CYGWIN__ */
+
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #else
@@ -522,6 +527,7 @@
 #ifdef word
 #undef word
 #endif /* word */
+#define select select_s
 #endif /* WATT32 */
 
 #undef NETWRITE

__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]

Reply via email to