Stefan Dirsch
89f97d561d
0002-configure-Use-LT_INIT-from-libtool-2-instead-of-depr.patch 0003-Add-X.Org-s-standard-C-warning-flags-to-AM_CFLAGS.patch 0004-Quiet-Wredundant-decls-from-xorg-os.h-fallbacks-for-.patch 0005-Fix-3-Wunused-but-set-variable-warnings.patch 0006-Fix-4-Wunused-variable-warnings.patch 0007-voodoo_find_dac-doesn-t-check-device_ids-2.patch 0008-use-XNFalloc-instead-of-xnfalloc.patch 0009-use-XNFcallocarray-instead-of-xnfcalloc-macro.patch 0010-bump-minimal-xorg-version-to-1.18.patch 0011-drop-compat-with-ancient-xserver-versions.patch 0012-Drop-ifdefs-for-ABI_VIDEODRV_VERSION-6.patch 0013-Remove-XAA-support.patch 0014-drop-dead-code.patch 0015-drop-remains-of-old-compat-code.patch * latest changes to fix build against current xserver OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xf86-video-voodoo?expand=0&rev=15
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From cfe1fcb4eefba66243ecf1336e38f4e77a491cff Mon Sep 17 00:00:00 2001
|
|
From: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Date: Mon, 15 Jan 2024 11:44:21 -0800
|
|
Subject: [PATCH 04/15] 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>
|
|
---
|
|
configure.ac | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index b7a711b..fe407d7 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -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"
|
|
--
|
|
2.43.0
|
|
|