Author: cazfi
Date: Thu Oct 29 20:26:35 2015
New Revision: 30302

URL: http://svn.gna.org/viewcvs/freeciv?rev=30302&view=rev
Log:
Look for socklen_t definition from <ws2tcpip.h>.

See patch #6496

Modified:
    trunk/configure.ac
    trunk/utility/netintf.h

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/configure.ac?rev=30302&r1=30301&r2=30302&view=diff
==============================================================================
--- trunk/configure.ac  (original)
+++ trunk/configure.ac  Thu Oct 29 20:26:35 2015
@@ -1147,9 +1147,17 @@
 AC_C_CONST
 AC_HEADER_TIME
 AC_STRUCT_TM
-AC_CHECK_TYPES(socklen_t, [], [],
-[#include <sys/types.h>
+AC_CHECK_HEADERS([ws2tcpip.h])
+AC_CHECK_TYPES([socklen_t], [], [],
+[#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
+#endif
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>
+#endif
 ])
 AC_TYPE_INTPTR_T
 dnl Headers that might contain the intptr_t definition found earlier

Modified: trunk/utility/netintf.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/utility/netintf.h?rev=30302&r1=30301&r2=30302&view=diff
==============================================================================
--- trunk/utility/netintf.h     (original)
+++ trunk/utility/netintf.h     Thu Oct 29 20:26:35 2015
@@ -42,6 +42,9 @@
 #endif
 #ifdef HAVE_WINSOCK
 #include <winsock.h>
+#endif
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>
 #endif
 
 #include "ioz.h"


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to