]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/compat.h
Minor typo in previous commit where returning 0 when it should have been 1 from opser...
[irc/evilnet/x3.git] / src / compat.h
index 8a6e8e25ec4e3a328a937bef024fbabf1cc0d6e6..bfbfce8d350fb031d9037ebeffa9d70a28280f77 100644 (file)
@@ -61,16 +61,6 @@ char *alloca();
 #include <netdb.h>
 #endif
 
-#ifdef HAVE_WINSOCK2_H
-/* Windows XP+ only -- older versions lack getaddrinfo() etc. */
-# define _WIN32_WINNT 0x0501
-# include <winsock2.h>
-#endif
-
-#ifdef HAVE_WS2TCPIP_H
-# include <ws2tcpip.h>
-#endif
-
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #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);
@@ -137,18 +122,8 @@ 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
+#ifndef SIGCHLD
+# define SIGCHLD SIGCLD
 #endif
 
 #endif /* COMPAT_H */