diff options
Diffstat (limited to 'src/bfstd.h')
-rw-r--r-- | src/bfstd.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/bfstd.h b/src/bfstd.h index d46fa02..79307cc 100644 --- a/src/bfstd.h +++ b/src/bfstd.h @@ -33,6 +33,22 @@ bool is_nonexistence_error(int error); #include <fcntl.h> +#ifndef O_EXEC +# ifdef O_PATH +# define O_EXEC O_PATH +# else +# define O_EXEC O_RDONLY +# endif +#endif + +#ifndef O_SEARCH +# ifdef O_PATH +# define O_SEARCH O_PATH +# else +# define O_SEARCH O_RDONLY +# endif +#endif + #ifndef O_DIRECTORY # define O_DIRECTORY 0 #endif |