From ffad651b9dd1e455b358415f5059510f6102db99 Mon Sep 17 00:00:00 2001 From: ken-cunningham-webuse Date: Thu, 23 May 2019 12:35:14 -0700 Subject: [PATCH] darwin: add 32 bit close$NOCANCEL implementation The link symbol for close$NOCANCEL is slightly different for 32 bit builds. PR-URL: https://github.com/libuv/libuv/pull/2309 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig --- src/unix/core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/unix/core.c b/src/unix/core.c index 3bada900..9c293c49 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -526,8 +526,13 @@ int uv__close_nocancel(int fd) { #if defined(__APPLE__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension" +#if defined(__LP64__) extern int close$NOCANCEL(int); return close$NOCANCEL(fd); +#else + extern int close$NOCANCEL$UNIX2003(int); + return close$NOCANCEL$UNIX2003(fd); +#endif #pragma GCC diagnostic pop #elif defined(__linux__) return syscall(SYS_close, fd);