]> granicus.if.org Git - curl/commitdiff
moved ugly NetWare hack to hostip.h so that hostip.c uses it too.
authorGunter Knauf <gk@gknw.de>
Tue, 8 Aug 2006 22:37:53 +0000 (22:37 +0000)
committerGunter Knauf <gk@gknw.de>
Tue, 8 Aug 2006 22:37:53 +0000 (22:37 +0000)
lib/hostip.h
lib/hostip4.c

index 6e7519c09d782768e465ebb047803120807fd384..c2191479eea1c46fc65705fd3e254956c10da24f 100644 (file)
 #include "setup.h"
 #include "hash.h"
 
+#if (defined(NETWARE) && defined(__NOVELL_LIBC__))
+#undef in_addr_t
+#define in_addr_t uint32_t
+#endif
+
 /*
  * Setup comfortable CURLRES_* defines to use in the host*.c sources.
  */
index a45d105805a77029cac093d273ba8fa6bd7dadf0..cbb00ab2dc5b7316c9b268f9fc543df76b9edad9 100644 (file)
 #include <process.h>
 #endif
 
-#if (defined(NETWARE) && defined(__NOVELL_LIBC__))
-#undef in_addr_t
-#define in_addr_t unsigned long
-#endif
-
 #include "urldata.h"
 #include "sendf.h"
 #include "hostip.h"