Quiet -Wredundant-decls from xorg/os.h fallbacks for timingsafe_memcmp

The Xorg headers provide their own version of 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>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/17>
This commit is contained in:
Alan Coopersmith
2024-05-12 14:31:35 -07:00
committed by Peter Hutterer
parent e3f6c5c642
commit dbc772982e

View File

@@ -47,6 +47,11 @@ XORG_ENABLE_UNIT_TESTS
# Checks for libraries.
AC_CHECK_LIB([m], [rint])
# Checks for library functions
# We don't use timingsafe_memcmp, but check to quiet -Wredundant-decls warning
# from xorg/os.h which will otherwise redefine it.
AC_CHECK_FUNCS([timingsafe_memcmp])
# Store the list of server defined optional extensions in REQUIRED_MODULES
m4_ifndef([XORG_DRIVER_CHECK_EXT],
[m4_fatal([must install xorg-server development files before running autoconf/autogen])])