From 29456a2ad33897b0834aa097390cdfe5e92d1364 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 16 Oct 2022 12:19:47 -0700 Subject: configure: check for timingsafe_memcmp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9eeed6c..5f44a25 100644 --- a/configure.ac +++ b/configure.ac @@ -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) -- cgit v1.2.1