summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Kendrick (monotony) <rjek@rjek.com>2013-03-26 22:24:14 +0000
committerRob Kendrick (monotony) <rjek@rjek.com>2013-03-26 22:24:14 +0000
commit0712452e5f92c5037bdc03a801f1ec952c185142 (patch)
tree8627b08926ed6765ae3ee4ae638d0636e90c72d3
parentf703c6bb9f2d438d7cedf9c49eac49c0897a4e42 (diff)
downloadluxio-0712452e5f92c5037bdc03a801f1ec952c185142.tar.gz
MINIX 3 build compatible. Stock MINIX 3 Lua package does not support dlopen however, so this needs actual checking.
-rw-r--r--config.h4
-rw-r--r--luxio_constants.h.in6
2 files changed, 7 insertions, 3 deletions
diff --git a/config.h b/config.h
index c2a9b89..b9b0096 100644
--- a/config.h
+++ b/config.h
@@ -22,5 +22,9 @@
# define LOGIN_NAME_MAX 9
#endif
+#ifndef IFNAMSIZ
+/* MINIX does not have this */
+# define IFNAMSIZ 128
+#endif
#endif /* LUXIO_CONFIG_H */
diff --git a/luxio_constants.h.in b/luxio_constants.h.in
index 05a73d9..9045e5d 100644
--- a/luxio_constants.h.in
+++ b/luxio_constants.h.in
@@ -49,13 +49,13 @@ static const struct {
E(O_WRONLY),
E(O_RDWR),
E(O_APPEND),
- E(O_ASYNC),
- E(O_CLOEXEC),
+? E(O_ASYNC),
+? E(O_CLOEXEC),
E(O_CREAT),
E(O_EXCL),
E(O_NOCTTY),
E(O_NONBLOCK),
- E(O_SYNC),
+? E(O_SYNC),
E(O_TRUNC),
? E(O_DIRECT),
? E(O_NOFOLLOW),