]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
few minor changes to make ares compile for NetWare CLIB architecture.
authorGunter Knauf <gk@gknw.de>
Tue, 3 Jul 2007 16:00:36 +0000 (16:00 +0000)
committerGunter Knauf <gk@gknw.de>
Tue, 3 Jul 2007 16:00:36 +0000 (16:00 +0000)
ares/Makefile.netware
ares/ares.h
ares/ares_getnameinfo.c
ares/ares_init.c

index d5bfe7c061e4c71fb073a84b47f850fcc540e0fc..c8e91c6d40591d1e906a1f08cbecdea14778cd83 100644 (file)
@@ -281,8 +281,8 @@ config.h: Makefile.netware
        @echo $(DL)#define PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/"$(DL) >> $@
 ifeq ($(LIBARCH),CLIB)
        @echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@
+       @echo $(DL)#define MAXHOSTNAMELEN 256$(DL) >> $@
        @echo $(DL)#define NETDB_USE_INTERNET 1$(DL) >> $@
-       @echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@
        @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
        @echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@
        @echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@
@@ -294,9 +294,10 @@ ifeq ($(LIBARCH),CLIB)
        @echo $(DL)#define SEND_TYPE_ARG3 int$(DL) >> $@
        @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
        @echo $(DL)#define SEND_TYPE_RETV int$(DL) >> $@
-       @echo $(DL)#define socklen_t int$(DL) >> $@
        @echo $(DL)#define DL_LDAP_FILE "ldapsdk.nlm"$(DL) >> $@
-       @echo $(DL)#define MAXHOSTNAMELEN 256$(DL) >> $@
+       @echo $(DL)#define socklen_t int$(DL) >> $@
+       @echo $(DL)#define strncasecmp strnicmp$(DL) >> $@
+       @echo $(DL)#define strcasecmp stricmp$(DL) >> $@
 else
        @echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
        @echo $(DL)#define HAVE_DLFCN_H 1$(DL) >> $@
index 6b942951fe7ea69423c620f4115cead0dc04846f..04b17ed62f22ffbfd2a31ce6753e48abe46a7490 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <sys/types.h>
 
-#if defined(_AIX) || defined(NETWARE)
+#if defined(_AIX) || (defined(NETWARE) && defined(__NOVELL_LIBC__))
 /* HP-UX systems version 9, 10 and 11 lack sys/select.h and so does oldish
    libc5-based Linux systems. Only include it on system that are known to
    require it! */
index 8d10cfc1155918868aa4225e5d4c715b297c54fd..2c28cebf6dbea9951ae6fb3ad286caf5061db9d7 100644 (file)
@@ -295,7 +295,11 @@ static char *lookup_service(unsigned short port, int flags,
 #endif
 #else
           /* Lets just hope the OS uses TLS! */
+#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))
+          sep = getservbyport(port, (char*)proto);
+#else
           sep = getservbyport(port, proto);
+#endif
 #endif
         }
       if (sep && sep->s_name)
index c9faf45a0400d665c3f71d40566006b8709f7644..f6018c90c269b5ac6a9a873f43bbe76b78d00d70 100644 (file)
 #include <malloc.h>
 
 #else
+#ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
+#endif
+
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif