From 74654c8cbb86bccb9d0c27e69c9d617c7d4fc39d Mon Sep 17 00:00:00 2001 From: darklukee Date: Mon, 19 Oct 2020 16:43:06 +0200 Subject: [PATCH] Fix compilation for systems without fcntl.h (#1942) Co-authored-by: darklukee --- src/os.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os.cc b/src/os.cc index 17214c73..a07e7824 100644 --- a/src/os.cc +++ b/src/os.cc @@ -62,7 +62,7 @@ using RWResult = int; inline unsigned convert_rwcount(std::size_t count) { return count <= UINT_MAX ? static_cast(count) : UINT_MAX; } -#else +#elif FMT_USE_FCNTL // Return type of read and write functions. using RWResult = ssize_t;