configure: check for timingsafe_memcmp

Not needed by mouse driver, but quiets warnings from xorg server headers:

In file included from /usr/include/xorg/misc.h:117:0,
                 from /usr/include/xorg/xf86str.h:37,
                 from /usr/include/xorg/xf86.h:44,
                 from mouse.c:57:
/usr/include/xorg/os.h:595:1: warning: redundant redeclaration of ‘timingsafe_memcmp’ [-Wredundant-decls]
 timingsafe_memcmp(const void *b1, const void *b2, size_t len);
 ^~~~~~~~~~~~~~~~~
In file included from mouse.c:52:0:
/usr/include/string.h:235:12: note: previous declaration of ‘timingsafe_memcmp’ was here
 extern int timingsafe_memcmp(const void *s1, const void *s2, size_t n);
            ^~~~~~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith
2022-10-16 12:19:47 -07:00
parent cbb97f4249
commit 29456a2ad3

View File

@@ -46,7 +46,7 @@ XORG_DEFAULT_OPTIONS
XORG_WITH_LINT
# Checks for library functions
AC_CHECK_FUNCS([asprintf])
AC_CHECK_FUNCS([asprintf timingsafe_memcmp])
# Obtain compiler/linker options from server and required extensions
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.7] xproto inputproto)