From 923abf5d2d3a2ee9e7ff06a2884a6ed38d653b05 Mon Sep 17 00:00:00 2001 From: "emptyx.wong" Date: Thu, 9 Jun 2022 14:50:01 +0800 Subject: [PATCH] fix macro HAVE_O_CLOEXEC when O_CLOEXEC not found --- util/env_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/env_posix.cc b/util/env_posix.cc index ffd06c4..87810a3 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -50,7 +50,7 @@ constexpr const int kDefaultMmapLimit = (sizeof(void*) >= 8) ? 1000 : 0; int g_mmap_limit = kDefaultMmapLimit; // Common flags defined for all posix open operations -#if defined(HAVE_O_CLOEXEC) +#if HAVE_O_CLOEXEC constexpr const int kOpenBaseFlags = O_CLOEXEC; #else constexpr const int kOpenBaseFlags = 0;