From c2f57e068e99a372b3a48eb57501484abcee85e9 Mon Sep 17 00:00:00 2001 From: darklukee Date: Mon, 19 Oct 2020 13:31:32 +0200 Subject: [PATCH] Fix compilation for systems without fcntl.h --- 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;