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:55:27 -0800
commitfb7725270c3b23fbf9d8b54a1b3a7eaae75ab604 (patch)
treef322cf18ab9add73247c2b3ee8645a64ae7d72bc
parentbd2c0a62a1a29d73b66dd694bd71a1b303b1515d (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 30ed0eb..334c7a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,6 +93,11 @@ AC_MSG_RESULT([$XAA])
AM_CONDITIONAL(SPARC, test x$SPARC = xyes)
+# 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=sunffb