From 2cda3070d522b3b875873be054c8eaf916523f0a Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Sat, 3 Jul 2004 21:48:42 +0000 Subject: added few ifdefs to make it usable for NetWare. --- ares/nameser.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ares') diff --git a/ares/nameser.h b/ares/nameser.h index 0311c7e6e..77c76bf48 100644 --- a/ares/nameser.h +++ b/ares/nameser.h @@ -4,10 +4,14 @@ /* Windows-only header file provided by liren@vivisimo.com to make his Windows port build */ +#ifndef NETWARE #include #include /* for the _getpid() proto */ +#endif /* !NETWARE */ #include +#ifndef NETWARE + #define MAXHOSTNAMELEN 256 #define EINPROGRESS WSAEINPROGRESS @@ -27,6 +31,8 @@ struct timezone { int dummy; }; int ares_gettimeofday(struct timeval *tv, struct timezone *tz); #define gettimeofday(tv,tz) ares_gettimeofday(tv,tz) +#endif /* !NETWARE */ + #define NS_CMPRSFLGS 0xc0 @@ -212,7 +218,7 @@ typedef enum __ns_rcode { #define T_MAILA ns_t_maila #define T_ANY ns_t_any -#ifndef __MINGW32__ +#if !(defined(__MINGW32__) || defined(NETWARE)) /* protos for the functions we provide in windows_port.c */ int ares_strncasecmp(const char *s1, const char *s2, size_t n); int ares_strcasecmp(const char *s1, const char *s2); -- cgit v1.2.3