mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 21:35:27 -04:00
Define O_ACCMODE if necessary (e.g. on Windows)
This commit is contained in:
parent
def1594c8e
commit
e6cec261e5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user