diff options
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 7 |
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 |