From 347c706d6fea578c28f45ece6fd22067f46d6c3b Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 15 Aug 2024 12:12:58 -0400 Subject: [PATCH] ci: undefined reference to arc4random_buf --- deps/c-ares_config/ares_build.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deps/c-ares_config/ares_build.h b/deps/c-ares_config/ares_build.h index 24fc1fea..1eddb24b 100644 --- a/deps/c-ares_config/ares_build.h +++ b/deps/c-ares_config/ares_build.h @@ -137,7 +137,11 @@ #define HAVE_IFADDRS_H 1 #define HAVE_UNISTD_H 1 #define HAVE_WRITEV 1 +#if defined(__ANDROID__) || defined(__APPLE__) || defined(__OpenBSD__) #define HAVE_ARC4RANDOM_BUF 1 +#else +#undef HAVE_ARC4RANDOM_BUF +#endif #define HAVE_GETIFADDRS 1 #define HAVE_STAT 1 #define CARES_RANDOM_FILE "/dev/urandom"