unix: unbreak macOS < 10.14 (#4230)

This commit is contained in:
Sergey Fedorov 2023-11-18 16:57:40 +08:00 committed by GitHub
parent 6be130e1b8
commit 4785ad6337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,8 @@
#if defined(__CYGWIN__) || \
(defined(__HAIKU__) && B_HAIKU_VERSION < B_HAIKU_VERSION_1_PRE_BETA_5) || \
(defined(__sun) && !defined(__illumos__))
(defined(__sun) && !defined(__illumos__)) || \
(defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED <= 101300)
#define preadv(fd, bufs, nbufs, off) \
pread(fd, (bufs)->iov_base, (bufs)->iov_len, off)
#define pwritev(fd, bufs, nbufs, off) \