patch-src_netlib_c 760 B

1234567891011121314151617
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- netperf-2.4.3.orig/src/netlib.c 2007-02-15 01:12:35.000000000 +0100
  3. +++ netperf-2.4.3/src/netlib.c 2009-06-01 23:36:22.000000000 +0200
  4. @@ -1900,8 +1900,13 @@ bind_to_specific_processor(int processor
  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)