Commit d89936a96c5d661cad3d978ca7e7f382e02a5d3e

Con Kolivas 2013-05-09T21:10:53

Fix warnings on win32 build.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/util.c b/util.c
index 66ae810..993a80f 100644
--- a/util.c
+++ b/util.c
@@ -201,8 +201,10 @@ out:
 
 static void keep_sockalive(SOCKETTYPE fd)
 {
+#ifndef WIN32
 	const int tcp_keepidle = 45;
 	const int tcp_keepintvl = 30;
+#endif
 	const int tcp_one = 1;
 
 	setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (const void *)&tcp_one, sizeof(tcp_one));