aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-04-24 01:28:48 +0000
committerNicolas Thill <nico@openwrt.org>2009-04-24 01:28:48 +0000
commit0874c6efcf03eff49743a3888709cf60bd44278a (patch)
treec104f8ff1b3ed6dbc4243597991656d3aa5db5ac /toolchain
parente3c1cb73163a3fbc899e900a49545da5524b575d (diff)
downloadupstream-0874c6efcf03eff49743a3888709cf60bd44278a.tar.gz
upstream-0874c6efcf03eff49743a3888709cf60bd44278a.tar.bz2
upstream-0874c6efcf03eff49743a3888709cf60bd44278a.zip
uClibc NPTL: remove the pthread daemon() fix and revert r15343
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15367 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/uClibc/patches-nptl/130-compile_fix.patch36
-rw-r--r--toolchain/uClibc/patches-nptl/130-pthread_weak_binding.patch10
2 files changed, 36 insertions, 10 deletions
diff --git a/toolchain/uClibc/patches-nptl/130-compile_fix.patch b/toolchain/uClibc/patches-nptl/130-compile_fix.patch
new file mode 100644
index 0000000000..ed3812a8ea
--- /dev/null
+++ b/toolchain/uClibc/patches-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__ */
diff --git a/toolchain/uClibc/patches-nptl/130-pthread_weak_binding.patch b/toolchain/uClibc/patches-nptl/130-pthread_weak_binding.patch
deleted file mode 100644
index 92227cf418..0000000000
--- a/toolchain/uClibc/patches-nptl/130-pthread_weak_binding.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/libc/unistd/daemon.c
-+++ b/libc/unistd/daemon.c
-@@ -54,7 +54,6 @@
- libc_hidden_proto(dup2)
- libc_hidden_proto(setsid)
- libc_hidden_proto(chdir)
--libc_hidden_proto(fork)
-
- int daemon( int nochdir, int noclose )
- {