diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-16 12:19:47 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-17 10:09:00 -0700 |
commit | 29456a2ad33897b0834aa097390cdfe5e92d1364 (patch) | |
tree | 0577d01ca112637320e6b27018338d453fe4c49c | |
parent | cbb97f4249ac6768e4a68423825ef0394104f5d8 (diff) |
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>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
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) |