Here is a small patch for MSDOS/djgpp/Watt-32 that enables terminating
LYGetHostByName() by pressing 'z'.

--- httcp.c.orig     Tue May 28 18:41:42 2002
+++ httcp.c          Fri Sep 13 09:10:16 2002
@@ -99,6 +99,13 @@
 extern int sys_nerr;
 #endif /* DECL_SYS_ERRLIST */
 
+#ifdef __DJGPP__
+static int ResolveYield (void)
+{
+    return HTCheckForInterrupt() ? 0 : 1;
+}
+#endif
+
 #ifdef _WINDOWS_NSL
 char host[512];
 struct hostent  *phost; /* Pointer to host - See netdb.h */
@@ -641,6 +648,11 @@
 #ifndef _WINDOWS_NSL
     char *host = str;
 #endif
+
+#ifdef __DJGPP__
+    _resolve_hook = ResolveYield;
+#endif
+
 #ifdef NSL_FORK
     /* for transfer of result between from child to parent: */
     static AlignedHOSTENT aligned_full_rehostent;

Gisle V.


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

Reply via email to