summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 15:52:41 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 15:52:41 -0800
commitb8b3a9e5b3c4001bd25e8699b99177c24672f930 (patch)
treeeb3c41ffddcf7046fc82afcb91ef62fecb3aca28
parent005a3d281fd63864528f3c4dfc3cbd25854a66dc (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.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 12a5491..9a868c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -115,6 +115,10 @@ int main() {
AC_MSG_RESULT([$HAVE_INB])
AM_CONDITIONAL(BUILD_UTILS, [test x$HAVE_INB = xyes])
+# 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=chips