1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-05 05:30:39 +03:00

Fix up the log resolve utility to work with NetWare. Increased the stack size

and fixed WSAStartup to use the correct version number


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bradley Nicholes
2003-03-11 19:11:17 +00:00
parent 2c4a98b3af
commit bc9f1dba49
2 changed files with 6 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ endif
# This is used by the link 'name' directive to name the nlm. If left blank # This is used by the link 'name' directive to name the nlm. If left blank
# TARGET_nlm (see below) will be used. # TARGET_nlm (see below) will be used.
# #
NLM_NAME = logreslv NLM_NAME = logres
# #
# This is used by the link '-desc ' directive. # This is used by the link '-desc ' directive.
@@ -105,7 +105,7 @@ NLM_DESCRIPTION = Apache $(VERSION_STR) Logresolve Utility for NetWare
# This is used by the '-threadname' directive. If left blank, # This is used by the '-threadname' directive. If left blank,
# NLM_NAME Thread will be used. # NLM_NAME Thread will be used.
# #
NLM_THREAD_NAME = logreslv NLM_THREAD_NAME = logres
# #
# This is used by the '-screenname' directive. If left blank, # This is used by the '-screenname' directive. If left blank,
@@ -122,7 +122,7 @@ NLM_VERSION =
# #
# If this is specified, it will override the default of 64K # If this is specified, it will override the default of 64K
# #
NLM_STACK_SIZE = 8192 NLM_STACK_SIZE = 65536
# #

View File

@@ -300,12 +300,12 @@ int main (int argc, char *argv[])
char *bar, hoststring[MAXDNAME + 1], line[MAXLINE], *statfile; char *bar, hoststring[MAXDNAME + 1], line[MAXLINE], *statfile;
int i, check; int i, check;
#ifdef WIN32 #if defined(WIN32) || defined(NETWARE)
/* If we apr'ify this code, apr_pool_create/apr_pool_destroy /* If we apr'ify this code, apr_pool_create/apr_pool_destroy
* should perform the WSAStartup/WSACleanup for us. * should perform the WSAStartup/WSACleanup for us.
*/ */
WSADATA wsaData; WSADATA wsaData;
WSAStartup(0x101, &wsaData); WSAStartup(MAKEWORD(2, 0), &wsaData);
#endif #endif
check = 0; check = 0;
@@ -362,7 +362,7 @@ int main (int argc, char *argv[])
puts(hoststring); puts(hoststring);
} }
#ifdef WIN32 #if defined(WIN32) || defined(NETWARE)
WSACleanup(); WSACleanup();
#endif #endif