This commit is contained in:
Chao Shi 2025-02-08 06:50:45 +08:00 committed by GitHub
commit 06d72d7fad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,11 +50,11 @@ constexpr const int kDefaultMmapLimit = (sizeof(void*) >= 8) ? 1000 : 0;
int g_mmap_limit = kDefaultMmapLimit; int g_mmap_limit = kDefaultMmapLimit;
// Common flags defined for all posix open operations // Common flags defined for all posix open operations
#if defined(HAVE_O_CLOEXEC) #if HAVE_O_CLOEXEC
constexpr const int kOpenBaseFlags = O_CLOEXEC; constexpr const int kOpenBaseFlags = O_CLOEXEC;
#else #else
constexpr const int kOpenBaseFlags = 0; constexpr const int kOpenBaseFlags = 0;
#endif // defined(HAVE_O_CLOEXEC) #endif // HAVE_O_CLOEXEC
constexpr const size_t kWritableFileBufferSize = 65536; constexpr const size_t kWritableFileBufferSize = 65536;