diff --git a/src/unix/fs.c b/src/unix/fs.c index be2c5512..891306da 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -82,7 +82,9 @@ # include #endif -#if defined(__CYGWIN__) || defined(__HAIKU__) || defined(__sun) +#if defined(__CYGWIN__) || \ + (defined(__HAIKU__) && B_HAIKU_VERSION < B_HAIKU_VERSION_1_PRE_BETA_5) || \ + (defined(__sun) && !defined(__illumos__)) #define preadv(fd, bufs, nbufs, off) \ pread(fd, (bufs)->iov_base, (bufs)->iov_len, off) #define pwritev(fd, bufs, nbufs, off) \