Commit 8c41b8e7 authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos
Browse files

libopts: use the O_BINARY flag in windows for files

parent c9c07b7f
Pipeline #298604 canceled with stage
......@@ -186,7 +186,9 @@ validate_mmap(char const * fname, int prot, int flags, tmap_info_t * mapinfo)
* write access.
int o_flag = FILE_WRITABLE(prot, flags) ? O_RDWR : O_RDONLY;
#ifdef _WIN32
o_flag |= O_BINARY;
* If you're not sharing the file and you are writing to it,
* then don't let anyone else have access to the file.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment