aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-01-06 15:12:05 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-01-06 15:12:05 +0000
commit886c282679678fded4fdce122a3da4d646f6670c (patch)
tree26a30a75c6bca99b00ff6d4d2a4f7650eef72a75
parentccf39fcdc1208d4ae293ef8a78d6f7db9b712cdc (diff)
downloadrtmux-886c282679678fded4fdce122a3da4d646f6670c.tar.gz
rtmux-886c282679678fded4fdce122a3da4d646f6670c.tar.bz2
rtmux-886c282679678fded4fdce122a3da4d646f6670c.zip
Use 0 if O_DIRECTORY is missing, reported by Dagobert Michelsen.
-rw-r--r--compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index ab3224b1..65d6ec7a 100644
--- a/compat.h
+++ b/compat.h
@@ -125,6 +125,10 @@ typedef uint64_t u_int64_t;
#define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
#endif
+#ifndef O_DIRECTORY
+#define O_DIRECTORY 0
+#endif
+
#ifndef INFTIM
#define INFTIM -1
#endif