diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-10 22:16:34 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-10 22:16:34 +0000 |
commit | 90639721625b5da867effc7dd4adec003c1bd3b4 (patch) | |
tree | 4d7ac8c92b1c6dd9f9b9ddda4091283d65007a69 /include/socket.h | |
parent | 129416e519319360c336cb3905210fdb9b531ae2 (diff) |
Routing more socket includes through socket.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3868 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socket.h')
-rw-r--r-- | include/socket.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/socket.h b/include/socket.h index 60347506d..1dd2e6827 100644 --- a/include/socket.h +++ b/include/socket.h @@ -19,6 +19,8 @@ /* This is where we'll define wrappers for socket IO stuff, for neat winsock compatability */ +#ifndef WIN32 + #include <arpa/inet.h> #include <sys/time.h> #include <sys/resource.h> @@ -29,8 +31,16 @@ #include <unistd.h> #include <fcntl.h> #include <poll.h> -#include <errno.h> #include <netdb.h> +#include <errno.h> + +#else + +#include <windows_defs.h> +#include <winsock2.h> + +#endif + #include "inspircd_config.h" /* macros to the relevant system address description structs */ |