summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 11:44:21 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-04 10:45:19 -0800
commit337b5fee955266a3c0156eb819b63bf496be6cc1 (patch)
treee42790aa3dab67b54d87e0917af4f6ba47893156
parent6b95d0a8097fad837ab9f38b8e5fac96b413edca (diff)
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 <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2dc63d8..a35cd19 100644
--- a/configure.ac
+++ b/configure.ac
@@ -232,6 +232,11 @@ AM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes)
AC_SUBST([moduledir])
+# 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=mach64
AC_SUBST([DRIVER_NAME])