From 163bf69ef8ed7b05cabf5ac5d6c3e5afe5316322 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 15 Jan 2024 11:44:21 -0800 Subject: Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functions The Xorg headers provide their own versions of strlcat, strlcpy, and timingsafe_memcmp for platforms that don't have them in libc yet, but rely on configure to set HAVE_* defines to determine if they should be defined in the headers. Signed-off-by: Alan Coopersmith --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index b519594..934068e 100644 --- a/configure.ac +++ b/configure.ac @@ -87,6 +87,11 @@ AC_MSG_CHECKING([whether to include XAA support]) AM_CONDITIONAL(XAA, test "x$XAA" = xyes) AC_MSG_RESULT([$XAA]) +# Checks for library functions +# We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet +# -Wredundant-decls warning from xorg/os.h which will otherwise redefine them. +AC_CHECK_FUNCS([strlcat strlcpy timingsafe_memcmp]) + DRIVER_NAME=ark AC_SUBST([DRIVER_NAME]) -- cgit v1.2.3