diff options
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |