aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches-0.9.30+nptl/130-compile_fix.patch
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-04-24 02:07:24 +0000
committerNicolas Thill <nico@openwrt.org>2009-04-24 02:07:24 +0000
commit222f37cbde2e880148eecd7bee5f39bb2afa6159 (patch)
treea6c174b24a09175c2add6a0264a5d89a7f584a50 /toolchain/uClibc/patches-0.9.30+nptl/130-compile_fix.patch
parent2783110a97a84c52b590221b637b3596d18dc013 (diff)
downloadupstream-222f37cbde2e880148eecd7bee5f39bb2afa6159.tar.gz
upstream-222f37cbde2e880148eecd7bee5f39bb2afa6159.tar.bz2
upstream-222f37cbde2e880148eecd7bee5f39bb2afa6159.zip
uClibc cleanup: - use full version string (0.9.30.1), instead of base (0.9.30) + extra (.1) - remove support for 0.9.28 and snapshots (building from SVN to be added later)
SVN-Revision: 15368
Diffstat (limited to 'toolchain/uClibc/patches-0.9.30+nptl/130-compile_fix.patch')
-rw-r--r--toolchain/uClibc/patches-0.9.30+nptl/130-compile_fix.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.30+nptl/130-compile_fix.patch b/toolchain/uClibc/patches-0.9.30+nptl/130-compile_fix.patch
new file mode 100644
index 0000000000..ed3812a8ea
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.30+nptl/130-compile_fix.patch
@@ -0,0 +1,36 @@
+--- a/librt/mq_receive.c
++++ b/librt/mq_receive.c
+@@ -6,7 +6,8 @@
+ #include <stddef.h>
+ #include <sys/syscall.h>
+ #include <mqueue.h>
+-#warning FIXME: hard dependency on ADVANCED REALTIME feature
++
++#ifdef __UCLIBC_HAS_ADVANCED_REALTIME__
+
+ librt_hidden_proto(mq_timedreceive)
+
+@@ -44,3 +45,5 @@ ssize_t mq_receive(mqd_t mqdes, char *ms
+ {
+ return mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio, NULL);
+ }
++
++#endif /* __UCLIBC_HAS_ADVANCED_REALTIME__ */
+--- a/librt/mq_send.c
++++ b/librt/mq_send.c
+@@ -6,7 +6,8 @@
+ #include <stddef.h>
+ #include <sys/syscall.h>
+ #include <mqueue.h>
+-#warning FIXME: hard dependency on ADVANCED REALTIME feature
++
++#ifdef __UCLIBC_HAS_ADVANCED_REALTIME__
+
+ librt_hidden_proto(mq_timedsend)
+
+@@ -43,3 +44,5 @@ int mq_send(mqd_t mqdes, const char *msg
+ {
+ return mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio, NULL);
+ }
++
++#endif /* __UCLIBC_HAS_ADVANCED_REALTIME__ */