From 2b439a2cdfad9f46966d12f7c8dab8534f79fd9e 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',