build: make code compilable for iOS on Xcode
Fixes: https://github.com/libuv/libuv/issues/2638 PR-URL: https://github.com/libuv/libuv/pull/2639 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
8270add421
commit
2475296c4e
@ -533,7 +533,7 @@ int uv__close_nocancel(int fd) {
|
|||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension"
|
#pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension"
|
||||||
#if defined(__LP64__)
|
#if defined(__LP64__) || defined(TARGET_OS_IPHONE)
|
||||||
extern int close$NOCANCEL(int);
|
extern int close$NOCANCEL(int);
|
||||||
return close$NOCANCEL(fd);
|
return close$NOCANCEL(fd);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user