From 70da075954475ccf2dc310e310a1d47a52aefda7 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 26 May 2023 15:30:00 +0000 Subject: [PATCH] deps: set `CARES_RANDOM_FILE` for c-ares Upstream c-ares renamed `RANDOM_FILE` to `CARES_RANDOM_FILE` some time ago in c-ares 1.17.2. PR-URL: https://github.com/nodejs/node/pull/48156 Refs: https://github.com/c-ares/c-ares/pull/397 Reviewed-By: Michael Dawson Reviewed-By: Ben Noordhuis --- deps/cares/config/aix/ares_config.h | 2 +- deps/cares/config/android/ares_config.h | 2 +- deps/cares/config/cygwin/ares_config.h | 2 +- deps/cares/config/darwin/ares_config.h | 2 +- deps/cares/config/freebsd/ares_config.h | 2 +- deps/cares/config/linux/ares_config.h | 2 +- deps/cares/config/netbsd/ares_config.h | 2 +- deps/cares/config/openbsd/ares_config.h | 2 +- deps/cares/config/sunos/ares_config.h | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/deps/cares/config/aix/ares_config.h b/deps/cares/config/aix/ares_config.h index c79096a362..de536cd467 100644 --- a/deps/cares/config/aix/ares_config.h +++ b/deps/cares/config/aix/ares_config.h @@ -378,7 +378,7 @@ #define PACKAGE_VERSION "1.13.0" /* a suitable file/device to read random data from */ -#define RANDOM_FILE "/dev/urandom" +#define CARES_RANDOM_FILE "/dev/urandom" /* Define to the type qualifier pointed by arg 5 for recvfrom. */ #define RECVFROM_QUAL_ARG5 diff --git a/deps/cares/config/android/ares_config.h b/deps/cares/config/android/ares_config.h index 50c8114396..ff52703208 100644 --- a/deps/cares/config/android/ares_config.h +++ b/deps/cares/config/android/ares_config.h @@ -378,7 +378,7 @@ #define PACKAGE_VERSION "1.13.0" /* a suitable file/device to read random data from */ -#define RANDOM_FILE "/dev/urandom" +#define CARES_RANDOM_FILE "/dev/urandom" /* Define to the type qualifier pointed by arg 5 for recvfrom. */ #define RECVFROM_QUAL_ARG5 diff --git a/deps/cares/config/cygwin/ares_config.h b/deps/cares/config/cygwin/ares_config.h index 3818ad0b46..66f97b3505 100644 --- a/deps/cares/config/cygwin/ares_config.h +++ b/deps/cares/config/cygwin/ares_config.h @@ -379,7 +379,7 @@ #define PACKAGE_VERSION "1.13.0" /* a suitable file/device to read random data from */ -#define RANDOM_FILE "/dev/urandom" +#define CARES_RANDOM_FILE "/dev/urandom" /* Define to the type of arg 1 for recvfrom. */ #define RECVFROM_TYPE_ARG1 int diff --git a/deps/cares/config/darwin/ares_config.h b/deps/cares/config/darwin/ares_config.h index 6625eccd6a..e127c27abc 100644 --- a/deps/cares/config/darwin/ares_config.h +++ b/deps/cares/config/darwin/ares_config.h @@ -378,7 +378,7 @@ #define PACKAGE_VERSION "1.13.0" /* a suitable file/device to read random data from */ -#define RANDOM_FILE "/dev/urandom" +#define CARES_RANDOM_FILE "/dev/urandom" /* Define to the type qualifier pointed by arg 5 for recvfrom. */ #define RECVFROM_QUAL_ARG5 diff --git a/deps/cares/config/freebsd/ares_config.h b/deps/cares/config/freebsd/ares_config.h index 1adaa8c32e..4f2b045fc8 100644 --- a/deps/cares/config/freebsd/ares_config.h +++ b/deps/cares/config/freebsd/ares_config.h @@ -378,7 +378,7 @@ #define PACKAGE_VERSION "1.13.0" /* a suitable file/device to read random data from */ -#define RANDOM_FILE "/dev/urandom" +#define CARES_RANDOM_FILE "/dev/urandom" /* Define to the type qualifier pointed by arg 5 for recvfrom. */ #define RECVFROM_QUAL_ARG5 diff --git a/deps/cares/config/linux/ares_config.h b/deps/cares/config/linux/ares_config.h index eb6239f637..3ba7e37da0 100644 --- a/deps/cares/config/linux/ares_config.h +++ b/deps/cares/config/linux/ares_config.h @@ -378,7 +378,7 @@ #define PACKAGE_VERSION "1.13.0" /* a suitable file/device to read random data from */ -#define RANDOM_FILE "/dev/urandom" +#define CARES_RANDOM_FILE "/dev/urandom" /* Define to the type qualifier pointed by arg 5 for recvfrom. */ #define RECVFROM_QUAL_ARG5 diff --git a/deps/cares/config/netbsd/ares_config.h b/deps/cares/config/netbsd/ares_config.h index 48512dc1a9..11efde2a8e 100644 --- a/deps/cares/config/netbsd/ares_config.h +++ b/deps/cares/config/netbsd/ares_config.h @@ -378,7 +378,7 @@ #define PACKAGE_VERSION "1.13.0" /* a suitable file/device to read random data from */ -#define RANDOM_FILE "/dev/urandom" +#define CARES_RANDOM_FILE "/dev/urandom" /* Define to the type qualifier pointed by arg 5 for recvfrom. */ #define RECVFROM_QUAL_ARG5 diff --git a/deps/cares/config/openbsd/ares_config.h b/deps/cares/config/openbsd/ares_config.h index 48512dc1a9..11efde2a8e 100644 --- a/deps/cares/config/openbsd/ares_config.h +++ b/deps/cares/config/openbsd/ares_config.h @@ -378,7 +378,7 @@ #define PACKAGE_VERSION "1.13.0" /* a suitable file/device to read random data from */ -#define RANDOM_FILE "/dev/urandom" +#define CARES_RANDOM_FILE "/dev/urandom" /* Define to the type qualifier pointed by arg 5 for recvfrom. */ #define RECVFROM_QUAL_ARG5 diff --git a/deps/cares/config/sunos/ares_config.h b/deps/cares/config/sunos/ares_config.h index b50814a103..d63b747207 100644 --- a/deps/cares/config/sunos/ares_config.h +++ b/deps/cares/config/sunos/ares_config.h @@ -378,7 +378,7 @@ #define PACKAGE_VERSION "1.13.0" /* a suitable file/device to read random data from */ -#define RANDOM_FILE "/dev/urandom" +#define CARES_RANDOM_FILE "/dev/urandom" /* Define to the type qualifier pointed by arg 5 for recvfrom. */ #define RECVFROM_QUAL_ARG5