diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-15 11:44:21 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-17 11:45:34 -0800 |
commit | 26822a39eeedcac94b36f5878a18a4aca5a2872b (patch) | |
tree | 09d65e777b3079c23e1c002fafcb2faf12f730aa | |
parent | 66300521464033e5a11d9b11f5983b83268a53e7 (diff) |
Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functions
The Xorg headers provide their own versions of strlcat, strlcpy, and
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>
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c7faf08..899f305 100644 --- a/configure.ac +++ b/configure.ac @@ -64,6 +64,11 @@ sdkdir=$(pkg-config --variable=sdkdir xorg-server) # Checks for header files. +# Checks for library functions +# We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet +# -Wredundant-decls warning from xorg/os.h which will otherwise redefine them. +AC_CHECK_FUNCS([strlcat strlcpy timingsafe_memcmp]) + DRIVER_NAME=elographics AC_SUBST([DRIVER_NAME]) |