mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
dev-libs/uulib: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -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();
|
||||
@@ -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() {
|
||||
Reference in New Issue
Block a user