mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
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:
committed by
Peter Hutterer
parent
e3f6c5c642
commit
dbc772982e
@@ -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])])
|
||||
|
||||
Reference in New Issue
Block a user