From ee2270687920e080f49950543debf9a0cf5a97fd Mon Sep 17 00:00:00 2001 From: Julian Dropmann Date: Wed, 22 Feb 2023 17:34:33 +0100 Subject: [PATCH] deps: fix libuv for android Fix android build errors introduced by the upgrade to libuv 1.44.2 Fixes: https://github.com/nodejs/node/issues/46743 Fixes: https://github.com/nodejs/node/issues/46744 PR-URL: https://github.com/nodejs/node/pull/46746 Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis Reviewed-By: Anna Henningsen Reviewed-By: Yagiz Nizipli Reviewed-By: Darshan Sen --- deps/uv/uv.gyp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/uv/uv.gyp b/deps/uv/uv.gyp index baa4a843128d69..c1adbc1b714d68 100644 --- a/deps/uv/uv.gyp +++ b/deps/uv/uv.gyp @@ -255,8 +255,10 @@ }, }], [ 'OS=="android"', { + 'defines': [ + '_GNU_SOURCE', + ], 'sources': [ - 'src/unix/android-ifaddrs.c', 'src/unix/linux-core.c', 'src/unix/linux-inotify.c', 'src/unix/linux-syscalls.c',