Fix compilation for systems without fcntl.h (#1942)

Co-authored-by: darklukee <no-reply@hidden>
This commit is contained in:
darklukee 2020-10-19 16:43:06 +02:00 committed by GitHub
parent f468b203ad
commit 74654c8cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ using RWResult = int;
inline unsigned convert_rwcount(std::size_t count) {
return count <= UINT_MAX ? static_cast<unsigned>(count) : UINT_MAX;
}
#else
#elif FMT_USE_FCNTL
// Return type of read and write functions.
using RWResult = ssize_t;