Make OpenBSD not use fcntl

This commit is contained in:
Ashton Fagg 2020-11-06 17:19:12 -05:00
parent a30b279bad
commit fb84dfc188

View File

@ -31,7 +31,8 @@
#endif
#if (FMT_HAS_INCLUDE(<fcntl.h>) || defined(__APPLE__) || \
defined(__linux__)) && \
(!defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
(!defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)) && \
(!defined(__OpenBSD__))
# include <fcntl.h> // for O_RDONLY
# define FMT_USE_FCNTL 1
#else