From c0f9c483e315379eabfbbef34fad51dbe42c896d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 3 Oct 2022 07:14:16 +0100 Subject: gentoo auto-resync : 03:10:2022 - 07:14:15 --- .../files/global-6.6.4-Fix-build-with-Clang-16.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dev-util/global/files/global-6.6.4-Fix-build-with-Clang-16.patch (limited to 'dev-util/global/files/global-6.6.4-Fix-build-with-Clang-16.patch') diff --git a/dev-util/global/files/global-6.6.4-Fix-build-with-Clang-16.patch b/dev-util/global/files/global-6.6.4-Fix-build-with-Clang-16.patch new file mode 100644 index 000000000000..a0398b46295b --- /dev/null +++ b/dev-util/global/files/global-6.6.4-Fix-build-with-Clang-16.patch @@ -0,0 +1,19 @@ +From 13f045457f08e349d6bb3f3e98a3b59c73f32bbc Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 2 Oct 2022 23:34:05 +0100 +Subject: [PATCH] Fix build with Clang 16 + +Bug: https://lists.gnu.org/archive/html/bug-global/2021-02/msg00012.html +Bug: https://bugs.gentoo.org/870988 +--- a/configure.ac ++++ b/configure.ac +@@ -74,7 +74,8 @@ case "$host_os" in + AC_MSG_CHECKING(whether POSIX.1-2008 realpath is equipped) + AC_CACHE_VAL(ac_cv_posix1_2008_realpath, + [AC_RUN_IFELSE([AC_LANG_SOURCE([[ +-main(){ (void)realpath("/./tmp", (void *)0); return 0; } ++#include ++int main(){ (void)realpath("/./tmp", (void *)0); return 0; } + ]])],[ac_cv_posix1_2008_realpath=yes], + [ac_cv_posix1_2008_realpath=no])]) + AC_MSG_RESULT($ac_cv_posix1_2008_realpath) -- cgit v1.2.3