termux-packages/packages/nodejs/deps-uv-uv.gyp.patch
Yaksh Bariya 1d929353e3
nodejs: Fix uv.gyp to also compile epoll.c
This patch also needs to be sent upstream. The nodejs team has done this
for linux but somehow didn't do it for android
2021-09-14 06:58:42 +05:30

29 lines
868 B
Diff

--- ./deps/uv/uv.gyp 2021-09-12 08:37:13.451586303 +0530
+++ ./deps/uv/uv.gyp.mod 2021-09-12 08:37:58.344924108 +0530
@@ -40,7 +40,7 @@
{
'target_name': 'libuv',
'type': '<(uv_library)',
- 'include_dirs': [
+ 'include_dirs+': [
'include',
'src/',
],
@@ -55,7 +55,7 @@
'<@(shared_unix_defines)',
'<@(shared_zos_defines)',
],
- 'include_dirs': [ 'include' ],
+ 'include_dirs+': [ 'include' ],
'conditions': [
['OS == "linux"', {
'defines': [ '_POSIX_C_SOURCE=200112' ],
@@ -262,6 +262,7 @@
'src/unix/procfs-exepath.c',
'src/unix/random-getrandom.c',
'src/unix/random-sysctl-linux.c',
+ 'src/unix/epoll.c',
],
'link_settings': {
'libraries': [ '-ldl' ],