diff options
author | Bradley Nicholes <bnicholes@apache.org> | 2005-04-15 01:42:21 +0200 |
---|---|---|
committer | Bradley Nicholes <bnicholes@apache.org> | 2005-04-15 01:42:21 +0200 |
commit | 6905d3d9d5da41176e547742c8c04d434cde2056 (patch) | |
tree | 36215a9131a7eb10cfa3907b4dbb6d4a155465b5 /modules/arch/netware | |
parent | BRIGADE_NORMALIZE could produce invalid results with 0 length buckets. (diff) | |
download | apache2-6905d3d9d5da41176e547742c8c04d434cde2056.tar.xz apache2-6905d3d9d5da41176e547742c8c04d434cde2056.zip |
Allow httpd on NetWare to build using either the standard socket libraries or the Winsock libraries.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@161368 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch/netware')
-rw-r--r-- | modules/arch/netware/libprews.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/arch/netware/libprews.c b/modules/arch/netware/libprews.c index 7255c75215..264ae054b8 100644 --- a/modules/arch/netware/libprews.c +++ b/modules/arch/netware/libprews.c @@ -26,7 +26,9 @@ ------------------------------------------------------------------*/ #include <netware.h> //#include "stddef.h" +#ifdef USE_WINSOCK #include "novsock2.h" +#endif int _NonAppStart ( @@ -54,14 +56,22 @@ int _NonAppStart #pragma unused(messageCount) #pragma unused(messages) +#ifdef USE_WINSOCK WSADATA wsaData; return WSAStartup((WORD) MAKEWORD(2, 0), &wsaData); +#else + return 0; +#endif } void _NonAppStop( void ) { +#ifdef USE_WINSOCK WSACleanup(); +#else + return;0; +#endif } int _NonAppCheckUnload( void ) |