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-01-17 10:44:47 -0800
commitae568c66757844bf5d80959f1d725e613b077be1 (patch)
tree9c2878f1a407bd4a60a873d0f4d5b3a17d1ed759
parent8dddea0a56d67d6105dea0b59d7ea5f6947b13f5 (diff)
Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functionsHEADmaster
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 4ac99ed..7e71f2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,6 +67,11 @@ AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test "$HAVE_XEXTPROTO_71" = "yes" ])
# Checks for libraries.
+# 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])
+
AC_SUBST([moduledir])
DRIVER_NAME=sisusb