diff options
author | Sam James <sam@gentoo.org> | 2022-11-04 01:37:32 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-11-04 02:22:16 +0000 |
commit | c9aa9aa6ed56f63c8b8593792fd76e5cf1c8f349 (patch) | |
tree | 740b677128491a3ac03c180383e5110d3e635107 /dev-libs/uulib | |
parent | app-arch/unzip: build with gnu89 (diff) | |
download | gentoo-c9aa9aa6ed56f63c8b8593792fd76e5cf1c8f349.tar.gz gentoo-c9aa9aa6ed56f63c8b8593792fd76e5cf1c8f349.tar.bz2 gentoo-c9aa9aa6ed56f63c8b8593792fd76e5cf1c8f349.zip |
dev-libs/uulib: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/uulib')
-rw-r--r-- | dev-libs/uulib/files/uulib-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch | 16 | ||||
-rw-r--r-- | dev-libs/uulib/uulib-0.5.20-r3.ebuild (renamed from dev-libs/uulib/uulib-0.5.20-r2.ebuild) | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-libs/uulib/files/uulib-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch b/dev-libs/uulib/files/uulib-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch new file mode 100644 index 000000000000..3f1e7c75ec93 --- /dev/null +++ b/dev-libs/uulib/files/uulib-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch @@ -0,0 +1,16 @@ +From 5679254b7b79e2f091fbb8658af910fe961f4d65 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 4 Nov 2022 01:35:53 +0000 +Subject: [PATCH] Fix -Wimplicit-function-declaration for strerror + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.in ++++ b/configure.in +@@ -51,6 +51,7 @@ AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,_FP_tempnam)) + # + AC_MSG_CHECKING([for strerror]) + AC_TRY_LINK([ ++#include <string.h> + char *blubb() { return (char *) strerror (42); } + ],[ + (void) blubb(); diff --git a/dev-libs/uulib/uulib-0.5.20-r2.ebuild b/dev-libs/uulib/uulib-0.5.20-r3.ebuild index 7fb2f06b6273..d90186cd79ae 100644 --- a/dev-libs/uulib/uulib-0.5.20-r2.ebuild +++ b/dev-libs/uulib/uulib-0.5.20-r3.ebuild @@ -18,6 +18,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x PATCHES=( "${FILESDIR}"/${P}-libtool.patch # 780018 + "${FILESDIR}"/${PN}-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch ) src_prepare() { |