diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-24 02:06:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-24 02:06:12 +0000 |
commit | f914fcf49f2ef0f5aa182b77116440d3c26f0c94 (patch) | |
tree | 2f093f70bef03096836ae434668cc9db697d1ee4 /toolchain/uClibc/patches-nptl/130-compile_fix.patch | |
parent | 16fa4d486de85b726db4543f571535a3749f9531 (diff) | |
download | mtk-20170518-f914fcf49f2ef0f5aa182b77116440d3c26f0c94.zip mtk-20170518-f914fcf49f2ef0f5aa182b77116440d3c26f0c94.tar.gz mtk-20170518-f914fcf49f2ef0f5aa182b77116440d3c26f0c94.tar.bz2 |
add uclibc-nptl
SVN-Revision: 15006
Diffstat (limited to 'toolchain/uClibc/patches-nptl/130-compile_fix.patch')
-rw-r--r-- | toolchain/uClibc/patches-nptl/130-compile_fix.patch | 36 |
1 files changed, 36 insertions, 0 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 0000000..ed3812a --- /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__ */ |