summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/netperf/files/cpu_set.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-support/netperf/files/cpu_set.patch
downloadmeta-openembedded-1b8dfe266937a37a4c642f96ceb2347bf4c00a17.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-support/netperf/files/cpu_set.patch')
-rw-r--r--meta-networking/recipes-support/netperf/files/cpu_set.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/netperf/files/cpu_set.patch b/meta-networking/recipes-support/netperf/files/cpu_set.patch
new file mode 100644
index 0000000000..434b790499
--- /dev/null
+++ b/meta-networking/recipes-support/netperf/files/cpu_set.patch
@@ -0,0 +1,30 @@
1Subject: [PATCH] netperf: fix CPU_SETSIZE to build with eglibc
2
3Upstream-Status: Pending
4
5Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
6---
7 src/netlib.c | 7 ++++++-
8 1 files changed, 6 insertions(+), 1 deletions(-)
9
10diff --git a/src/netlib.c b/src/netlib.c
11index 206e002..e33aae6 100644
12--- a/src/netlib.c
13+++ b/src/netlib.c
14@@ -2265,7 +2265,12 @@ bind_to_specific_processor(int processor_affinity, int use_cpu_map)
15 fall-back on what we had before, which is to use just the size of
16 an unsigned long. raj 2006-09-14 */
17
18-#if defined(__CPU_SETSIZE)
19+#if defined(CPU_SETSIZE)
20+#define NETPERF_CPU_SETSIZE CPU_SETSIZE
21+#define NETPERF_CPU_SET(cpu, cpusetp) CPU_SET(cpu, cpusetp)
22+#define NETPERF_CPU_ZERO(cpusetp) CPU_ZERO (cpusetp)
23+ typedef cpu_set_t netperf_cpu_set_t;
24+#elif defined(__CPU_SETSIZE)
25 #define NETPERF_CPU_SETSIZE __CPU_SETSIZE
26 #if defined(__CPU_SET_S)
27 #define NETPERF_CPU_SET(cpu, cpusetp) __CPU_SET_S(cpu, sizeof (cpu_set_t), cpusetp)
28--
291.7.1.1
30