summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ept/utils/sys.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ept/utils/sys.cc b/ept/utils/sys.cc
index 8f6f2ff..695a557 100644
--- a/ept/utils/sys.cc
+++ b/ept/utils/sys.cc
@@ -12,6 +12,14 @@
#include <fcntl.h>
#include <alloca.h>
+#ifndef O_PATH
+# define O_PATH 0
+#endif
+
+#ifndef O_DIRECTORY
+# define O_DIRECTORY 0
+#endif
+
namespace {
inline const char* to_cstring(const std::string& s)