From 46a72e012e6f71b7fda0d6ffcaeb7dcfad3d1c4a 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 c79096a3627013..de536cd4673611 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 50c8114396b0fd..ff527032080aea 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 3818ad0b4612a9..66f97b3505da82 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 6625eccd6a3281..e127c27abc6b30 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 1adaa8c32e5e99..4f2b045fc8bb2c 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 eb6239f6370e5b..3ba7e37da0b306 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 48512dc1a9950b..11efde2a8e3a86 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 48512dc1a9950b..11efde2a8e3a86 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 b50814a103a383..d63b7472072ba4 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