Define O_ACCMODE if necessary (e.g. on Windows)

This commit is contained in:
Marcus Holland-Moritz 2023-07-01 15:08:15 +02:00
parent def1594c8e
commit e6cec261e5

View File

@ -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 <typename LogProxy, typename Find>
int op_open_common(LogProxy& log_, dwarfs_userdata* userdata,
struct fuse_file_info* fi, Find const& find) {