From fc70430b09c49032d41ae97db26da10e20941e75 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Fri, 24 Nov 2023 10:17:52 +0000 Subject: [PATCH] unix: correct pwritev conditional (#4233) --- src/unix/fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/fs.c b/src/unix/fs.c index 4de0643a..9671f0dd 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -85,7 +85,8 @@ #if defined(__CYGWIN__) || \ (defined(__HAIKU__) && B_HAIKU_VERSION < B_HAIKU_VERSION_1_PRE_BETA_5) || \ (defined(__sun) && !defined(__illumos__)) || \ - (defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED <= 101300) + (defined(__APPLE__) && !TARGET_OS_IPHONE && \ + MAC_OS_X_VERSION_MIN_REQUIRED < 110000) #define preadv(fd, bufs, nbufs, off) \ pread(fd, (bufs)->iov_base, (bufs)->iov_len, off) #define pwritev(fd, bufs, nbufs, off) \