Commit adc391ea authored by Matt Galloway's avatar Matt Galloway Committed by Facebook GitHub Bot

Check for `preadv` and `pwritev` also on watchOS and tvOS

Summary: Originally we were only checking for iOS or macOS, but this logic also needs to be done for watchOS and tvOS as well.

Reviewed By: Orvid

Differential Revision: D23302842

fbshipit-source-id: 40806b3c45194b964fe14d0d00a092a2c96e9882
parent e56907db
......@@ -71,7 +71,7 @@ ssize_t preadv(int fd, const iovec* iov, int count, off_t offset) {
!TARGET_OS_SIMULATOR && \
(__MAC_OS_X_VERSION_MAX_ALLOWED >= 101600 || \
__IPHONE_OS_VERSION_MAX_ALLOWED >= 140000)
if (__builtin_available(iOS 14.0, macOS 11.0, *)) {
if (__builtin_available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, *)) {
return &::preadv;
}
#endif
......@@ -90,7 +90,7 @@ ssize_t pwritev(int fd, const iovec* iov, int count, off_t offset) {
!TARGET_OS_SIMULATOR && \
(__MAC_OS_X_VERSION_MAX_ALLOWED >= 101600 || \
__IPHONE_OS_VERSION_MAX_ALLOWED >= 140000)
if (__builtin_available(iOS 14.0, macOS 11.0, *)) {
if (__builtin_available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, *)) {
return &::pwritev;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment