diff options
-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() { |