Skip to content

Commit 1eeb1cb

Browse files
emptyx0hebasto
authored andcommitted
fix macro HAVE_O_CLOEXEC when O_CLOEXEC not found
1 parent 330dd62 commit 1eeb1cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/env_posix.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ constexpr const int kDefaultMmapLimit = (sizeof(void*) >= 8) ? 4096 : 0;
4949
int g_mmap_limit = kDefaultMmapLimit;
5050

5151
// Common flags defined for all posix open operations
52-
#if defined(HAVE_O_CLOEXEC)
52+
#if HAVE_O_CLOEXEC
5353
constexpr const int kOpenBaseFlags = O_CLOEXEC;
5454
#else
5555
constexpr const int kOpenBaseFlags = 0;

0 commit comments

Comments
 (0)