1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

added few ifdefs to make it usable for NetWare.

This commit is contained in:
Gunter Knauf 2004-07-03 21:48:42 +00:00
parent 728bed8c98
commit 2cda3070d5

View File

@ -4,10 +4,14 @@
/* Windows-only header file provided by liren@vivisimo.com to make his Windows /* Windows-only header file provided by liren@vivisimo.com to make his Windows
port build */ port build */
#ifndef NETWARE
#include <windows.h> #include <windows.h>
#include <process.h> /* for the _getpid() proto */ #include <process.h> /* for the _getpid() proto */
#endif /* !NETWARE */
#include <sys/types.h> #include <sys/types.h>
#ifndef NETWARE
#define MAXHOSTNAMELEN 256 #define MAXHOSTNAMELEN 256
#define EINPROGRESS WSAEINPROGRESS #define EINPROGRESS WSAEINPROGRESS
@ -27,6 +31,8 @@ struct timezone { int dummy; };
int ares_gettimeofday(struct timeval *tv, struct timezone *tz); int ares_gettimeofday(struct timeval *tv, struct timezone *tz);
#define gettimeofday(tv,tz) ares_gettimeofday(tv,tz) #define gettimeofday(tv,tz) ares_gettimeofday(tv,tz)
#endif /* !NETWARE */
#define NS_CMPRSFLGS 0xc0 #define NS_CMPRSFLGS 0xc0
@ -212,7 +218,7 @@ typedef enum __ns_rcode {
#define T_MAILA ns_t_maila #define T_MAILA ns_t_maila
#define T_ANY ns_t_any #define T_ANY ns_t_any
#ifndef __MINGW32__ #if !(defined(__MINGW32__) || defined(NETWARE))
/* protos for the functions we provide in windows_port.c */ /* protos for the functions we provide in windows_port.c */
int ares_strncasecmp(const char *s1, const char *s2, size_t n); int ares_strncasecmp(const char *s1, const char *s2, size_t n);
int ares_strcasecmp(const char *s1, const char *s2); int ares_strcasecmp(const char *s1, const char *s2);