[netperf-dev] netperf2 commit notice r160 - trunk/src

raj at netperf.org raj at netperf.org
Mon Dec 3 12:07:57 PST 2007


Author: raj
Date: 2007-12-03 12:07:56 -0800 (Mon, 03 Dec 2007)
New Revision: 160

Modified:
   trunk/src/netlib.c
Log:
track further interface changes in sched.h


Modified: trunk/src/netlib.c
===================================================================
--- trunk/src/netlib.c	2007-11-20 18:06:26 UTC (rev 159)
+++ trunk/src/netlib.c	2007-12-03 20:07:56 UTC (rev 160)
@@ -1990,8 +1990,13 @@
 
 #if defined(__CPU_SETSIZE)
 #define NETPERF_CPU_SETSIZE __CPU_SETSIZE
+#if defined(__CPU_SET_S)
+#define NETPERF_CPU_SET(cpu, cpusetp)  __CPU_SET_S(cpu, sizeof (cpu_set_t), cpusetp)
+#define NETPERF_CPU_ZERO(cpusetp)      __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp) 
+#else
 #define NETPERF_CPU_SET(cpu, cpusetp)  __CPU_SET(cpu, cpusetp)
 #define NETPERF_CPU_ZERO(cpusetp)      __CPU_ZERO (cpusetp)
+#endif
   typedef cpu_set_t netperf_cpu_set_t;
 #else
 #define NETPERF_CPU_SETSIZE sizeof(unsigned long)



More information about the netperf-dev mailing list