mirror of
https://github.com/X11Libre/xf86-video-voodoo.git
synced 2026-03-24 01:25:25 +00:00
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>
This commit is contained in:
@@ -63,7 +63,10 @@ PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
|
||||
HAVE_XEXTPROTO_71="no")
|
||||
AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test "$HAVE_XEXTPROTO_71" = "yes" ])
|
||||
|
||||
# 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])
|
||||
|
||||
SAVE_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
|
||||
|
||||
Reference in New Issue
Block a user