From b738caed4282a6d76d5606eb4a3d96cc40dbb574 Mon Sep 17 00:00:00 2001 From: nappy <56575+nappy@users.noreply.github.com> Date: Mon, 20 Feb 2023 14:41:05 +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 --- 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 a3e9819a7e0fda..320a0016b7c3e8 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',