Root/toolchain/uClibc/patches-0.9.30+nptl/130-compile_fix.patch

1--- a/librt/mq_receive.c
2+++ b/librt/mq_receive.c
3@@ -6,7 +6,8 @@
4 #include <stddef.h>
5 #include <sys/syscall.h>
6 #include <mqueue.h>
7-#warning FIXME: hard dependency on ADVANCED REALTIME feature
8+
9+#ifdef __UCLIBC_HAS_ADVANCED_REALTIME__
10 
11 librt_hidden_proto(mq_timedreceive)
12 
13@@ -44,3 +45,5 @@ ssize_t mq_receive(mqd_t mqdes, char *ms
14 {
15     return mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio, NULL);
16 }
17+
18+#endif /* __UCLIBC_HAS_ADVANCED_REALTIME__ */
19--- a/librt/mq_send.c
20+++ b/librt/mq_send.c
21@@ -6,7 +6,8 @@
22 #include <stddef.h>
23 #include <sys/syscall.h>
24 #include <mqueue.h>
25-#warning FIXME: hard dependency on ADVANCED REALTIME feature
26+
27+#ifdef __UCLIBC_HAS_ADVANCED_REALTIME__
28 
29 librt_hidden_proto(mq_timedsend)
30 
31@@ -43,3 +44,5 @@ int mq_send(mqd_t mqdes, const char *msg
32 {
33     return mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio, NULL);
34 }
35+
36+#endif /* __UCLIBC_HAS_ADVANCED_REALTIME__ */
37

Archive Download this file



interactive