aboutsummaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat.h')
-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