X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/ff3b058ac51e9caf5cf1fd310b8a401a97a85582..ef5e03051fd86d66844d61f3fcc1c7a82957826a:/src/compat.h diff --git a/src/compat.h b/src/compat.h index 8a6e8e2..232af42 100644 --- a/src/compat.h +++ b/src/compat.h @@ -61,16 +61,6 @@ char *alloca(); #include #endif -#ifdef HAVE_WINSOCK2_H -/* Windows XP+ only -- older versions lack getaddrinfo() etc. */ -# define _WIN32_WINNT 0x0501 -# include -#endif - -#ifdef HAVE_WS2TCPIP_H -# include -#endif - #ifdef HAVE_UNISTD_H #include #endif @@ -84,14 +74,9 @@ char *alloca(); #endif #ifndef HAVE_GETTIMEOFDAY -struct timezone; extern int gettimeofday(struct timeval * tv, struct timezone * tz); #endif -#ifndef HAVE_GETLOCALTIME_R -extern struct tm *localtime_r(const time_t *timep, struct tm *result); -#endif - #ifndef HAVE_MEMCPY /* this should use size_t, but some systems don't define it */ extern void * memcpy(void * dest, void const * src, unsigned long n); @@ -125,7 +110,6 @@ struct addrinfo { #define AI_PASSIVE 1 #define AI_CANONNAME 2 -#define AI_NUMERICHOST 4 #endif /* !defined(HAVE_STRUCT_ADDRINFO) */ @@ -137,18 +121,4 @@ void freeaddrinfo(struct addrinfo *res); #endif -#ifndef HAVE_GAI_STRERROR -const char *gai_strerror(int errcode); -#endif - -#ifndef EINPROGRESS -# ifdef WSAEINPROGRESS -# define EINPROGRESS WSAEINPROGRESS -# define EHOSTUNREACH WSAEHOSTUNREACH -# define ECONNREFUSED WSAECONNREFUSED -# define ECONNRESET WSAECONNRESET -# define ETIMEDOUT WSAETIMEDOUT -# endif -#endif - #endif /* COMPAT_H */