diff options
-rw-r--r-- | base/logging.cpp | 1 | ||||
-rw-r--r-- | base/strings.cpp | 1 | ||||
-rw-r--r-- | include/utils/Compat.h | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/base/logging.cpp b/base/logging.cpp index 8bfb20462..38ee2afd4 100644 --- a/base/logging.cpp +++ b/base/logging.cpp | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <iostream> | 19 | #include <iostream> |
20 | #include <limits> | 20 | #include <limits> |
21 | #include <mutex> | ||
21 | #include <sstream> | 22 | #include <sstream> |
22 | #include <string> | 23 | #include <string> |
23 | #include <vector> | 24 | #include <vector> |
diff --git a/base/strings.cpp b/base/strings.cpp index 5f7eccc3f..6f698d9a7 100644 --- a/base/strings.cpp +++ b/base/strings.cpp | |||
@@ -17,6 +17,7 @@ | |||
17 | #include "base/strings.h" | 17 | #include "base/strings.h" |
18 | 18 | ||
19 | #include <stdlib.h> | 19 | #include <stdlib.h> |
20 | #include <string.h> | ||
20 | 21 | ||
21 | #include <string> | 22 | #include <string> |
22 | #include <vector> | 23 | #include <vector> |
diff --git a/include/utils/Compat.h b/include/utils/Compat.h index a238afe74..ca4a8e0d8 100644 --- a/include/utils/Compat.h +++ b/include/utils/Compat.h | |||
@@ -36,7 +36,7 @@ static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) | |||
36 | #endif /* __APPLE__ */ | 36 | #endif /* __APPLE__ */ |
37 | 37 | ||
38 | #if defined(_WIN32) | 38 | #if defined(_WIN32) |
39 | #define O_CLOEXEC 0 | 39 | #define O_CLOEXEC O_NOINHERIT |
40 | #define O_NOFOLLOW 0 | 40 | #define O_NOFOLLOW 0 |
41 | #define DEFFILEMODE 0666 | 41 | #define DEFFILEMODE 0666 |
42 | #endif /* _WIN32 */ | 42 | #endif /* _WIN32 */ |