summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/irc.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/map/irc.c b/src/map/irc.c
index 466adf745..7f512963f 100644
--- a/src/map/irc.c
+++ b/src/map/irc.c
@@ -1,12 +1,25 @@
+#include <ctype.h>
+#include <string.h>
+
+#ifdef __WIN32
+#define __USE_W32_SOCKETS
+#include <windows.h>
+#include <io.h>
+typedef int socklen_t;
+#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
+#include <unistd.h>
#include <sys/ioctl.h>
-#include <arpa/inet.h>
#include <netdb.h>
-#include <unistd.h>
-#include <ctype.h>
-#include <string.h>
+#include <arpa/inet.h>
+
+#ifndef SIOCGIFCONF
+#include <sys/sockio.h> // SIOCGIFCONF on Solaris, maybe others? [Shinomori]
+#endif
+
+#endif
#include "../common/core.h"
#include "../common/socket.h"