diff options
author | Gunter Knauf <gk@gknw.de> | 2007-08-09 22:33:49 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2007-08-09 22:33:49 +0000 |
commit | b238e0b1b4e8f3e5c4e9c0d7d8c565e3776b0999 (patch) | |
tree | ab4f6ce0b318fb83c8865ccc317b5e525fceb31b /lib/nwos.c | |
parent | 3f62bfb61d776d8f9095c13f4cd004dd32cb3cca (diff) | |
download | curl-b238e0b1b4e8f3e5c4e9c0d7d8c565e3776b0999.tar.gz |
fixed warning with gcc 4.x (hopefully); dynamincally imported UseAccurateCaseForPaths() for CLIB port to be stonetime-compatible (NW 3.x).curl-7_17_0-preldapfix
Diffstat (limited to 'lib/nwos.c')
-rw-r--r-- | lib/nwos.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/nwos.c b/lib/nwos.c index 22720a5b4..a84a3daf2 100644 --- a/lib/nwos.c +++ b/lib/nwos.c @@ -37,26 +37,32 @@ int netware_init ( void ) /* For native CLib-based NLM we need to initialize the LONG namespace. */ #include <stdio.h> #include <nwnspace.h> -#include <nwfileio.h> #include <nwthread.h> #include <nwadv.h> /* Make the CLIB Ctx stuff link */ #include <netdb.h> NETDB_DEFINE_CONTEXT /* Make the CLIB Inet stuff link */ +#include <netinet/in.h> #include <arpa/inet.h> NETINET_DEFINE_CONTEXT int netware_init ( void ) { int rc = 0; - /* import UnAugmentAsterisk dynamically for NW4.x compatibility */ unsigned int myHandle = GetNLMHandle(); + /* import UnAugmentAsterisk dynamically for NW4.x compatibility */ void (*pUnAugmentAsterisk)(int) = (void(*)(int)) ImportSymbol(myHandle, "UnAugmentAsterisk"); + /* import UseAccurateCaseForPaths dynamically for NW3.x compatibility */ + void (*pUseAccurateCaseForPaths)(int) = (void(*)(int)) + ImportSymbol(myHandle, "UseAccurateCaseForPaths"); if (pUnAugmentAsterisk) pUnAugmentAsterisk(1); + if (pUseAccurateCaseForPaths) + pUseAccurateCaseForPaths(1); UnimportSymbol(myHandle, "UnAugmentAsterisk"); + UnimportSymbol(myHandle, "UseAccurateCaseForPaths"); /* set long name space */ if ((SetCurrentNameSpace(4) == 255)) { rc = 1; @@ -64,7 +70,6 @@ int netware_init ( void ) if ((SetTargetNameSpace(4) == 255)) { rc = rc + 2; } - UseAccurateCaseForPaths(1); return rc; } |