From ac02d379ba4580a2ff4e5b12eaea12edca0a2250 Mon Sep 17 00:00:00 2001
From: Gunter Knauf <gk@gknw.de>
Date: Tue, 8 Aug 2006 22:37:53 +0000
Subject: [PATCH] moved ugly NetWare hack to hostip.h so that hostip.c uses it
 too.

---
 lib/hostip.h  | 5 +++++
 lib/hostip4.c | 5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/hostip.h b/lib/hostip.h
index 6e7519c09d..c2191479ee 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -26,6 +26,11 @@
 #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.
  */
diff --git a/lib/hostip4.c b/lib/hostip4.c
index a45d105805..cbb00ab2dc 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -64,11 +64,6 @@
 #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"
-- 
GitLab