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 10:46:33 -0800 |
commit | e94a73e4e2d60f12c2698b10b1f1eb8d425ef72e (patch) | |
tree | 401671ea758a6a60f15b323b47a7b2ab2cca2bc4 | |
parent | cc4113a11c8214bb23844716ec22e310b444af07 (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, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7a53c60..160a427 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,11 @@ PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_M # 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]) + AC_SUBST([moduledir]) DRIVER_NAME=suncg14 |