From 323bb41d3bdf23688b75d62d1bc8ba010657135b Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Thu, 13 Jun 2024 14:23:28 +0000 Subject: [PATCH] fix: add sys random patch --- patches/node.v20.14.0.cpp.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/patches/node.v20.14.0.cpp.patch b/patches/node.v20.14.0.cpp.patch index 1a953a95..262b4072 100644 --- a/patches/node.v20.14.0.cpp.patch +++ b/patches/node.v20.14.0.cpp.patch @@ -11,6 +11,21 @@ index 0af8af37c6..604a28c3cf 100644 }, { 'lto': ' -flto ', # Clang }], +diff --git node/deps/cares/config/linux/ares_config.h node/deps/cares/config/linux/ares_config.h +index 3cb135a35c..131ad80f2a 100644 +--- node/deps/cares/config/linux/ares_config.h ++++ node/deps/cares/config/linux/ares_config.h +@@ -329,7 +329,9 @@ + #define HAVE_SYS_PARAM_H 1 + + /* Define to 1 if you have the header file. */ +-#define HAVE_SYS_RANDOM_H 1 ++/* Fixes https://github.com/yao-pkg/pkg-fetch/pull/35#issuecomment-2165554043 */ ++// #define HAVE_SYS_RANDOM_H 1 ++#undef HAVE_SYS_RANDOM_H + + /* Define to 1 if you have the header file. */ + #define HAVE_SYS_SELECT_H 1 diff --git node/deps/v8/include/v8-initialization.h node/deps/v8/include/v8-initialization.h index d3e35d6ec5..6e9bbe3849 100644 --- node/deps/v8/include/v8-initialization.h