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 09:36:49 -0800 |
commit | ac67fa9515ceb9a115feb56e28b8191af886a563 (patch) | |
tree | 2af5635618810d847e90baad0be68a0d3251ce7f | |
parent | 9a57874a00557663e21679c40c02469f3079d953 (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 a5646cc..8b82715 100644 --- a/configure.ac +++ b/configure.ac @@ -141,6 +141,11 @@ if test "x$XSERVER_LIBPCIACCESS" = xyes; then fi AM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes) +# 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]) + AC_SUBST([moduledir]) DRIVER_NAME=savage |