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-16 15:48:50 -0800 |
commit | 881bc2b24421c98e437e31d2b9230182bcccd778 (patch) | |
tree | 83f4d760a0ce2547d62b86f45ba04873af2f4c29 | |
parent | f1732ab6631422f7036ee09fcaf89797b89f54a6 (diff) |
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, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2a0128c..9948098 100644 --- a/configure.ac +++ b/configure.ac @@ -83,7 +83,10 @@ if test "x$XSERVER_LIBPCIACCESS" = xyes; then PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.12.901]) fi -# Checks for libraries. +# 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=vesa AC_SUBST([DRIVER_NAME]) |