summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-07-29 18:23:01 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-07-29 18:23:01 -0400
commit53612664740f3a31d93d2059f7d981da3ba565dc (patch)
treeaa64e8dd5a93df17114ac6bb40eb8df394ab16b8 /util.h
parent590c038630d453b3652b33e54b81fd06ceb0c6d2 (diff)
downloadbfs-53612664740f3a31d93d2059f7d981da3ba565dc.tar.xz
util: Define O_DIRECTORY to 0 if it's not already defined
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.h b/util.h
index 8f20102..b2025e6 100644
--- a/util.h
+++ b/util.h
@@ -50,6 +50,10 @@
# define S_ISWHT(mode) false
#endif
+#ifndef O_DIRECTORY
+# define O_DIRECTORY 0
+#endif
+
/**
* readdir() wrapper that makes error handling cleaner.
*/