[netperf-dev] netperf4 commit notice r102 - branches/glib_migration/src

raj at netperf.org raj at netperf.org
Fri Mar 24 14:59:24 PST 2006


Author: raj
Date: 2006-03-24 14:59:23 -0800 (Fri, 24 Mar 2006)
New Revision: 102

Modified:
   branches/glib_migration/src/netlib.c
Log:
One last little nit and we can actually compile a netserver under Windows!
I've not tried to run it because it is still necessary to get the tests
themselves compiled as DLL's...  and netperf still needs to be converted 
to the glib option parser


Modified: branches/glib_migration/src/netlib.c
===================================================================
--- branches/glib_migration/src/netlib.c	2006-03-24 22:57:57 UTC (rev 101)
+++ branches/glib_migration/src/netlib.c	2006-03-24 22:59:23 UTC (rev 102)
@@ -1472,7 +1472,9 @@
       }
       continue;
     }
-    if (setsockopt(sockfd,SOL_SOCKET,SO_REUSEADDR,&one,sizeof(one)) == 
+    /* The Windows DDK compiler is quite picky about pointers so we
+       cast one as a void to placate it. */
+    if (setsockopt(sockfd,SOL_SOCKET,SO_REUSEADDR,(void *)&one,sizeof(one)) == 
 	SOCKET_ERROR) {
       fprintf(where,"establish_listen: SO_REUSEADDR failed\n");
       fflush(where);



More information about the netperf-dev mailing list