The ability to interrupt nameserver lookup has not worked in Win98 using
the Cygwin port, despite defining _WINDOWS_NSL. It looks like the
threaded code is only for WinNT. At least under Cygwin, that code also
seems to work fine under Win98. This changes the HTTCP.c to use the
threaded _WINDOWS_NSL code for all Cygwin machines. Does anyone know
what the problem was that lead to the code being only for WinNT
originally? Does anyone see problems with these changes?
                          Doug

--- lynx2.8.5dev.2/lynx2-8-5/WWW/Library/Implementation/HTTCP.c.ori     Sun Jun  3 
12:58:00 2001
+++ lynx2.8.5dev.2/lynx2-8-5/WWW/Library/Implementation/HTTCP.c Wed Aug 22 17:57:28 
+2001
@@ -1089,6 +1089,7 @@
     {
        HANDLE hThread, dwThreadID;
 
+#ifndef __CYGWIN__
        if (!system_is_NT) {    /* for Windows9x */
            unsigned long t;
            t = (unsigned long)inet_addr(host);
@@ -1097,6 +1098,7 @@
            else
                phost = gethostbyname(host);
        } else {                /* for Windows NT */
+#endif /* !__CYGWIN__ */
            phost = (struct hostent *) NULL;
            donelookup = FALSE;
            hThread = CreateThread((void *)NULL, 4096UL,
@@ -1118,7 +1120,9 @@
                    return NULL;
                }
            }
+#ifndef __CYGWIN__
        }
+#endif /* !__CYGWIN__ */
        if (phost) {
            lynx_nsl_status = HT_OK;
            result_phost = phost;

__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to