summaryrefslogtreecommitdiff
path: root/luxio.c
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2019-03-17 21:33:03 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-03-21 20:24:37 +0000
commit33d6ea6d65d97d2eb5a962b4b7ead21ea0176110 (patch)
treeb26d72315bdd093d98db23a051d754285e441975 /luxio.c
parent80bbeba5ca28d9901fa1b66ae4cb08ba58018bb8 (diff)
downloadluxio-33d6ea6d65d97d2eb5a962b4b7ead21ea0176110.tar.bz2
Enable compilation on OpenBSD
Diffstat (limited to 'luxio.c')
-rw-r--r--luxio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/luxio.c b/luxio.c
index e952c47..1dca902 100644
--- a/luxio.c
+++ b/luxio.c
@@ -2550,7 +2550,7 @@ luxio_nanosleep(lua_State *L) /* 14.2.5 */
POSIX message passing is not available on all platforms.
@section msgpass
*/
-#if defined(_POSIX_MESSAGE_PASSING)
+#if _POSIX_MESSAGE_PASSING >= 0
#include <mqueue.h>
@@ -4592,7 +4592,7 @@ luxio_functions[] = {
{ "nanosleep", luxio_nanosleep },
-#if defined(_POSIX_MESSAGE_PASSING)
+#if _POSIX_MESSAGE_PASSING >= 0
#if _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L
{ "mq_timedsend", luxio_mq_timedsend },