Home | History | Annotate | Download | only in netperf2
      1 --- src/netlib.c.orig      2008-10-21 20:32:05.000000000 -0400
      2 +++ src/netlib.c   2008-10-21 20:35:13.000000000 -0400
      3 @@ -1990,8 +1990,13 @@
      4  
      5  #if defined(__CPU_SETSIZE)
      6  #define NETPERF_CPU_SETSIZE __CPU_SETSIZE
      7 +#if defined(__CPU_SET_S)
      8 +#define NETPERF_CPU_SET(cpu, cpusetp)  __CPU_SET_S(cpu, sizeof (cpu_set_t), cpusetp)
      9 +#define NETPERF_CPU_ZERO(cpusetp)      __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp) 
     10 +#else
     11  #define NETPERF_CPU_SET(cpu, cpusetp)  __CPU_SET(cpu, cpusetp)
     12  #define NETPERF_CPU_ZERO(cpusetp)      __CPU_ZERO (cpusetp)
     13 +#endif
     14    typedef cpu_set_t netperf_cpu_set_t;
     15  #else
     16  #define NETPERF_CPU_SETSIZE sizeof(unsigned long)
     17