From 0d2577561c4ffe242ab0e5a638cd7d6117f52b39 Mon Sep 17 00:00:00 2001 From: Michal Biesek Date: Tue, 16 Apr 2024 10:02:44 +0200 Subject: [PATCH] Disable usage of in older version of glibc Ref: https://github.com/nodejs/node/issues/52223 --- src/patch/18.20.2/no_rand_on_glibc.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/patch/18.20.2/no_rand_on_glibc.patch diff --git a/src/patch/18.20.2/no_rand_on_glibc.patch b/src/patch/18.20.2/no_rand_on_glibc.patch new file mode 100644 index 0000000..a4e53f4 --- /dev/null +++ b/src/patch/18.20.2/no_rand_on_glibc.patch @@ -0,0 +1,24 @@ +disable usage of + +--- deps/cares/config/linux/ares_config.h ++++ deps/cares/config/linux/ares_config.h +@@ -116,7 +116,9 @@ + #define HAVE_GETNAMEINFO 1 + + /* Define to 1 if you have `getrandom` */ ++#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 + #define HAVE_GETRANDOM 1 ++#endif + + /* Define to 1 if you have `getservbyport_r` */ + #define HAVE_GETSERVBYPORT_R 1 +@@ -329,7 +331,9 @@ + #define HAVE_SYS_PARAM_H 1 + + /* Define to 1 if you have the header file. */ ++#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 + #define HAVE_SYS_RANDOM_H 1 ++#endif + + /* Define to 1 if you have the header file. */ + #define HAVE_SYS_SELECT_H 1 \ No newline at end of file