diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-02 22:09:53 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-02 22:09:53 +0200 |
commit | 7c520cd3ad42f5d94a9888bb9b3db7c79b6fd94f (patch) | |
tree | c2cb6c76cdcc70b6ee1ca13f6ca209cc88d84305 /package/netperf/patches | |
parent | ec275cae0293507fd03a7eeb972780fdbd5d40aa (diff) |
fix regressions for allconfig alix1c glibc target
Diffstat (limited to 'package/netperf/patches')
-rw-r--r-- | package/netperf/patches/patch-src_netlib_c | 17 | ||||
-rw-r--r-- | package/netperf/patches/patch-src_netlib_c.orig | 11 |
2 files changed, 28 insertions, 0 deletions
diff --git a/package/netperf/patches/patch-src_netlib_c b/package/netperf/patches/patch-src_netlib_c new file mode 100644 index 000000000..688054fde --- /dev/null +++ b/package/netperf/patches/patch-src_netlib_c @@ -0,0 +1,17 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- netperf-2.4.3.orig/src/netlib.c 2007-02-15 01:12:35.000000000 +0100 ++++ netperf-2.4.3/src/netlib.c 2009-06-01 23:36:22.000000000 +0200 +@@ -1900,8 +1900,13 @@ bind_to_specific_processor(int processor + + #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) diff --git a/package/netperf/patches/patch-src_netlib_c.orig b/package/netperf/patches/patch-src_netlib_c.orig new file mode 100644 index 000000000..f3e023cc0 --- /dev/null +++ b/package/netperf/patches/patch-src_netlib_c.orig @@ -0,0 +1,11 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- netperf-2.4.3.orig/src/netlib.c 2007-02-15 01:12:35.000000000 +0100 ++++ netperf-2.4.3/src/netlib.c 2009-06-01 23:30:34.000000000 +0200 +@@ -59,6 +59,7 @@ char netlib_id[]="\ + /* This is based on a spot-check of a couple systems at my disposal. */ + /* If you have trouble compiling you may want to add "sys/" raj 10/95 */ + #include <limits.h> ++#include <sched.h> + #include <signal.h> + #ifdef MPE + # define NSIG _NSIG |