Author: cazfi
Date: Sun Aug 14 23:05:53 2016
New Revision: 33594

URL: http://svn.gna.org/viewcvs/freeciv?rev=33594&view=rev
Log:
Corrected ioctlsocket() call parameter type on win64 compile.

See bug #24900

Modified:
    branches/S2_6/utility/netintf.c

Modified: branches/S2_6/utility/netintf.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/utility/netintf.c?rev=33594&r1=33593&r2=33594&view=diff
==============================================================================
--- branches/S2_6/utility/netintf.c     (original)
+++ branches/S2_6/utility/netintf.c     Sun Aug 14 23:05:53 2016
@@ -224,7 +224,12 @@
 {
 #ifdef NONBLOCKING_SOCKETS
 #ifdef FREECIV_HAVE_WINSOCK
-  unsigned long b = 1;
+#ifdef __LP64__
+  unsigned b = 1;
+#else  /* __LP64__ */
+  u_long b = 1;
+#endif /* __LP64__ */
+
   ioctlsocket(sockfd, FIONBIO, &b);
 #else  /* FREECIV_HAVE_WINSOCK */
 #ifdef HAVE_FCNTL


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

Reply via email to