aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-05-13 12:12:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-05-13 12:12:17 +0000
commite615d117a010e068f3d0639928cc9555b14c0077 (patch)
tree84ed73313e01924656dcf200b45b983798bdabaf /lib/hostip.h
parenta51258b6bbec9e075894f5aa2e180b6c40613ba8 (diff)
Setup and use CURL_INADDR_NONE all over instead of INADDR_NONE. We setup
the define accordingly in the hostip.h header to work nicely all over.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index fc1474c39..d07b75e3d 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -79,4 +79,11 @@ int curl_getaddrinfo(char *hostname, char *service,
int line, const char *source);
#endif
+#ifndef INADDR_NONE
+#define CURL_INADDR_NONE (in_addr_t) ~0
+#else
+#define CURL_INADDR_NONE INADDR_NONE
+#endif
+
+
#endif