From 886c282679678fded4fdce122a3da4d646f6670c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 6 Jan 2014 15:12:05 +0000 Subject: [PATCH] Use 0 if O_DIRECTORY is missing, reported by Dagobert Michelsen. --- compat.h | 4 ++++ 1 file changed, 4 insertions(+) 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