summary refs log tree commit diff stats
path: root/src/common/server.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-21 14:26:19 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-21 14:26:19 +0200
commite7f723539d39f20092aabfb5b51826807e016fe3 (patch)
tree88c887012ba3fbf1b9b9c1208453a98568cbad3b /src/common/server.c
parent4cae471af3a4d8e9c7457f76186da809879f566f (diff)
Some aid for compiler warnings
Diffstat (limited to 'src/common/server.c')
-rw-r--r--src/common/server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/common/server.c b/src/common/server.c
index c8cc59e0..2e8d535d 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -33,12 +33,13 @@
 #define WANTARPA
 #include "inet.h"
 
-#ifndef WIN32
+#ifdef WIN32
+#include <winbase.h>
+#include <io.h>
+#else
 #include <signal.h>
 #include <sys/wait.h>
 #include <unistd.h>
-#else
-#include <winbase.h>
 #endif
 
 #include "xchat.h"
@@ -907,7 +908,9 @@ server_read_child (GIOChannel *source, GIOCondition condition, server *serv)
 	char outbuf[512];
 	char host[100];
 	char ip[100];
+#ifdef USE_MSPROXY
 	char *p;
+#endif
 
 	waitline2 (source, tbuf, sizeof tbuf);