diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-17 14:49:35 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-17 14:49:35 +0000 |
commit | e0e7551d5608be97504d3ca74cf5f1e6eb2f04f9 (patch) | |
tree | c2cbeb58d4e899c36d8b8c6128ac3c10a99b5d9d /src | |
parent | 46ea6c76831a76749c531d5568a23839cc14e25f (diff) | |
download | hercules-e0e7551d5608be97504d3ca74cf5f1e6eb2f04f9.tar.gz hercules-e0e7551d5608be97504d3ca74cf5f1e6eb2f04f9.tar.bz2 hercules-e0e7551d5608be97504d3ca74cf5f1e6eb2f04f9.tar.xz hercules-e0e7551d5608be97504d3ca74cf5f1e6eb2f04f9.zip |
- Modified the included files in irc.c, used as reference the includes in common/socket.c, will it compile in Windows systems now?
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5310 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/irc.c | 21 |
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"
|