2
0

130-compile_fix.patch 910 B

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