From efd9e301ff4dc6f2a48d754c264d209a689d8b7f Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 28 May 2023 17:05:49 +0200 Subject: [PATCH] configure.ac: Resolve conflict between libbsd and glibc >=2.36 --- expat/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expat/configure.ac b/expat/configure.ac index 6727fe00..4ae1c35a 100644 --- a/expat/configure.ac +++ b/expat/configure.ac @@ -204,9 +204,10 @@ AS_IF([test "x${with_libbsd}" != xno], [AC_MSG_ERROR([Enforced use of libbsd cannot be satisfied.])])])]) AC_MSG_CHECKING([for arc4random_buf (BSD, libbsd or glibc 2.36+)]) AC_LINK_IFELSE([AC_LANG_SOURCE([ - #include /* for arc4random_buf on BSD */ #if defined(HAVE_LIBBSD) # include + #else + # include /* for arc4random_buf on BSD */ #endif int main() { char dummy[[123]]; // double brackets for m4