Skip to contentSkip to conversation

posix: Fix HAVE_MQUEUE_H check

PATCH New Jan Kiszka 1 participant 1 message Apr 14, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 posix: Fix HAVE_MQUEUE_H check

Please pull from git://git.xenomai.org/xenomai-jki.git for-upstream

------>

---

 include/posix/mqueue.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
include/posix/mqueue.h +3 -3
index b5870f9..f4f40c8 100644
@@ -40,7 +40,7 @@
 
 #endif /* !(__KERNEL__ || __XENO_SIM__) */
 
-#if defined(__KERNEL__) || defined(__XENO_SIM__) || !HAVE_MQUEUE
+#if defined(__KERNEL__) || defined(__XENO_SIM__) || !defined(HAVE_MQUEUE_H)
 
 #ifndef MQ_PRIO_MAX
 #define MQ_PRIO_MAX 32768
@@ -104,7 +104,7 @@ int mq_unlink(const char *name);
 }
 #endif
 
-#else /* !(__KERNEL__ || __XENO_SIM__ || !HAVE_MQUEUE) */
+#else /* !(__KERNEL__ || __XENO_SIM__ || !HAVE_MQUEUE_H) */
 
 #include_next <mqueue.h>
 
@@ -155,6 +155,6 @@ int __real_mq_notify(mqd_t mqdes, const struct sigevent *notification);
 }
 #endif
 
-#endif /* !(__KERNEL__ || __XENO_SIM__ || !HAVE_MQUEUE) */
+#endif /* !(__KERNEL__ || __XENO_SIM__ || !HAVE_MQUEUE_H) */
 
 #endif /* _XENO_POSIX_MQUEUE_H */