diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-03-24 12:59:03 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-14 17:51:43 -0700 |
commit | ea9736afb18573264264c6fa0b1e8d1b01c278c7 (patch) | |
tree | e658f54d81547174d5edbf0421d3549259868261 | |
parent | 5e90ec5ecfa82cae9ed740dec79b6fff9702881e (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>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/22>
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a6df24c..23753d2 100644 --- a/configure.ac +++ b/configure.ac @@ -105,6 +105,11 @@ AC_MSG_RESULT([$XAA]) # Substitutions AC_SUBST([moduledir]) +# 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=nv AC_SUBST([DRIVER_NAME]) |