You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2003/03/11 20:11:17 UTC
cvs commit: httpd-2.0/support NWGNUlogres logresolve.c
bnicholes 2003/03/11 11:11:17
Modified: support NWGNUlogres logresolve.c
Log:
Fix up the log resolve utility to work with NetWare. Increased the stack size
and fixed WSAStartup to use the correct version number
Revision Changes Path
1.4 +3 -3 httpd-2.0/support/NWGNUlogres
Index: NWGNUlogres
===================================================================
RCS file: /home/cvs/httpd-2.0/support/NWGNUlogres,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- NWGNUlogres 16 Oct 2002 23:52:35 -0000 1.3
+++ NWGNUlogres 11 Mar 2003 19:11:17 -0000 1.4
@@ -93,7 +93,7 @@
# This is used by the link 'name' directive to name the nlm. If left blank
# TARGET_nlm (see below) will be used.
#
-NLM_NAME = logreslv
+NLM_NAME = logres
#
# This is used by the link '-desc ' directive.
@@ -105,7 +105,7 @@
# This is used by the '-threadname' directive. If left blank,
# NLM_NAME Thread will be used.
#
-NLM_THREAD_NAME = logreslv
+NLM_THREAD_NAME = logres
#
# This is used by the '-screenname' directive. If left blank,
@@ -122,7 +122,7 @@
#
# If this is specified, it will override the default of 64K
#
-NLM_STACK_SIZE = 8192
+NLM_STACK_SIZE = 65536
#
1.18 +3 -3 httpd-2.0/support/logresolve.c
Index: logresolve.c
===================================================================
RCS file: /home/cvs/httpd-2.0/support/logresolve.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- logresolve.c 10 May 2002 18:20:29 -0000 1.17
+++ logresolve.c 11 Mar 2003 19:11:17 -0000 1.18
@@ -300,12 +300,12 @@
char *bar, hoststring[MAXDNAME + 1], line[MAXLINE], *statfile;
int i, check;
-#ifdef WIN32
+#if defined(WIN32) || defined(NETWARE)
/* If we apr'ify this code, apr_pool_create/apr_pool_destroy
* should perform the WSAStartup/WSACleanup for us.
*/
WSADATA wsaData;
- WSAStartup(0x101, &wsaData);
+ WSAStartup(MAKEWORD(2, 0), &wsaData);
#endif
check = 0;
@@ -362,7 +362,7 @@
puts(hoststring);
}
-#ifdef WIN32
+#if defined(WIN32) || defined(NETWARE)
WSACleanup();
#endif