lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Compilation problems on DJGPP (2.8.5dev.9) [PATCH]


From: Doug Kaufman
Subject: lynx-dev Compilation problems on DJGPP (2.8.5dev.9) [PATCH]
Date: Tue, 22 Oct 2002 20:07:16 -0700 (PDT)

Lynx 2.8.5dev.9 doesn't compile out of the box under DJGPP. There
were 2 problems noted. The first was a syntax error related to
_resolve_hook. The other was related to DJGPP being considered a
multi-user unix system. Lynx compiles and runs with the following
patch, but I am not sure that I understand how _resolve_hook really
works, so I am not sure that this is the correct patch for it. Perhaps
Gisle can review this.

Lynx wouldn't run with the default watt-32, version 2.2dev1 which
Gisle just released. That defaults to IPv6 compilation and lynx
compiled with it wouldn't run when lynx was compiled without IPv6.
The lynx configuration with IPv6 failed when trying to find a working
getaddrinfo(). I just recompiled WATT-32 without IPv6 support and lynx
seems to work OK.
                      Doug

--- lynx2.8.5dev.9/lynx2-8-5/WWW/Library/Implementation/HTTCP.c.orig    
2002-10-06 17:43:28.000000000 -0700
+++ lynx2.8.5dev.9/lynx2-8-5/WWW/Library/Implementation/HTTCP.c 2002-10-22 
18:07:24.000000000 -0700
@@ -650,7 +650,10 @@
 #endif

 #ifdef __DJGPP__
-    _resolve_hook = ResolveYield;
+       int *_resolve_hook (void)
+       {
+                       return ResolveYield();
+       }
 #endif

 #ifdef NSL_FORK
--- lynx2.8.5dev.9/lynx2-8-5/WWW/Library/Implementation/HTUtils.h.orig  
2002-10-06 17:43:28.000000000 -0700
+++ lynx2.8.5dev.9/lynx2-8-5/WWW/Library/Implementation/HTUtils.h       
2002-10-22 18:22:14.000000000 -0700
@@ -180,7 +180,7 @@
 #endif

 #if defined(UNIX)
-#  if (defined(__BEOS__) || defined(__CYGWIN__) || defined(__EMX__))
+#  if (defined(__BEOS__) || defined(__CYGWIN__) || defined(__EMX__) || 
defined(__DJGPP))
 #    define SINGLE_USER_UNIX   /* well, at least they try */
 #  else
 #    define MULTI_USER_UNIX

__
Doug Kaufman
Internet: address@hidden


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]