summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-12-16 23:56:31 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-12-16 23:56:31 -0500
commitc218fea5eeff80e11e9b71c29f9cbbcc945019e5 (patch)
treeb4385a6b83365fb914f83d8092bcc521073d462d /util.h
parentad962d56e2d06110e026888f2731a2c7fff88604 (diff)
downloadbfs-c218fea5eeff80e11e9b71c29f9cbbcc945019e5.tar.xz
Fix the build on OpenIndiana
Diffstat (limited to 'util.h')
-rw-r--r--util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/util.h b/util.h
index e814f23..f65e9f5 100644
--- a/util.h
+++ b/util.h
@@ -13,6 +13,8 @@
#define BFS_UTIL_H
#include <dirent.h>
+#include <fcntl.h>
+#include <fnmatch.h>
#include <stdbool.h>
#include <sys/stat.h>
@@ -24,6 +26,14 @@
# define st_mtim st_mtimespec
#endif
+#if !defined(FNM_CASEFOLD) && defined(FNM_IGNORECASE)
+# define FNM_CASEFOLD FNM_IGNORECASE
+#endif
+
+#ifndef O_DIRECTORY
+# define O_DIRECTORY 0
+#endif
+
#ifndef S_ISDOOR
# define S_ISDOOR(mode) false
#endif