From d993913c331c4487e2ae8633410b845620ff0840 Mon Sep 17 00:00:00 2001 From: Laramie Leavitt Date: Tue, 24 Sep 2024 16:02:18 -0700 Subject: [PATCH] Remove HAVE_SYS_RANDOM_H from ares PiperOrigin-RevId: 678430154 Change-Id: I17c906cf7d9bc7ad573d3532decc45a5263cca6e --- .bazelrc | 4 ++-- third_party/com_github_cares_cares/config/linux.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.bazelrc b/.bazelrc index 85b153fb2..9472327e2 100644 --- a/.bazelrc +++ b/.bazelrc @@ -30,8 +30,8 @@ build:gcc_or_clang --host_per_file_copt=upb/.*\\.c$@-Wno-array-bounds,-Wno-strin build:gcc_or_clang --per_file_copt=upbc/.*\\.cc$@-Wno-array-bounds,-Wno-stringop-overflow,-Wno-stringop-overread build:gcc_or_clang --host_per_file_copt=upbc/.*\\.cc$@-Wno-array-bounds,-Wno-stringop-overflow,-Wno-stringop-overread -build:gcc_or_clang --per_file_copt=src/core.*\\.cc$@-Wno-attributes -build:gcc_or_clang --host_per_file_copt=src/core.*\\.cc$@-Wno-attributes +build:gcc_or_clang --per_file_copt=grpc/src/.*\\.cc$@-Wno-attributes +build:gcc_or_clang --host_per_file_copt=grpc/src/.*\\.cc$@-Wno-attributes # Use colors build:gcc_or_clang --copt=-fdiagnostics-color=always diff --git a/third_party/com_github_cares_cares/config/linux.h b/third_party/com_github_cares_cares/config/linux.h index 89588619e..414a793e1 100644 --- a/third_party/com_github_cares_cares/config/linux.h +++ b/third_party/com_github_cares_cares/config/linux.h @@ -132,7 +132,7 @@ #define HAVE_GETNAMEINFO 1 /* Define to 1 if you have the getrandom function. */ -#define HAVE_GETRANDOM 1 +/* #undef HAVE_GETRANDOM */ /* Define to 1 if you have the getservbyport_r function. */ #define HAVE_GETSERVBYPORT_R 1 @@ -328,7 +328,7 @@ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ -#define HAVE_SYS_RANDOM_H 1 +/* #undef HAVE_SYS_RANDOM_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EVENT_H */