summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-02-04 14:48:42 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-02-05 10:00:32 (GMT)
commitd8f71a4c5695657c4deb5557b990b614a6a45488 (patch)
treee62601939b4c4ef329f141965da46685e1fab96a
parent27a35801b8b506c0d8e562b73f5cca6ff8f2b32f (diff)
downloadbuildroot-d8f71a4c5695657c4deb5557b990b614a6a45488.tar.gz
buildroot-d8f71a4c5695657c4deb5557b990b614a6a45488.tar.bz2
liburcu: add patch to fix build with uClibc
Under uClibc, defining _GNU_SOURCE is strictly needed to access the CPU_*() macros. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/liburcu/liburcu-0.6.7-missing-gnu-source.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/liburcu/liburcu-0.6.7-missing-gnu-source.patch b/package/liburcu/liburcu-0.6.7-missing-gnu-source.patch
new file mode 100644
index 0000000..f34120c
--- /dev/null
+++ b/package/liburcu/liburcu-0.6.7-missing-gnu-source.patch
@@ -0,0 +1,13 @@
+Define _GNU_SOURCE to access CPU_ZERO() macro in uClibc
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: userspace-rcu-0.6.7/tests/urcutorture.c
+===================================================================
+--- userspace-rcu-0.6.7.orig/tests/urcutorture.c 2012-02-01 10:17:09.938804402 +0100
++++ userspace-rcu-0.6.7/tests/urcutorture.c 2012-02-01 10:17:15.308713372 +0100
+@@ -1,3 +1,4 @@
++#define _GNU_SOURCE
+ #include <string.h>
+ #include <sys/time.h>
+ #include <poll.h>