diff --git a/src/dwarfs_main.cpp b/src/dwarfs_main.cpp index b712604d..d310bf00 100644 --- a/src/dwarfs_main.cpp +++ b/src/dwarfs_main.cpp @@ -455,6 +455,10 @@ int op_readlink(char const* path, char* buf, size_t buflen) { } #endif +#ifndef O_ACCMODE +#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) +#endif + template int op_open_common(LogProxy& log_, dwarfs_userdata* userdata, struct fuse_file_info* fi, Find const& find) {