media-radio/ibp: fix build with clang16

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens 2022-09-30 04:06:28 -04:00
parent 546235197b
commit ceba8dbc54
No known key found for this signature in database
GPG Key ID: B24406B0B0AC4334
2 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,8 @@
https://bugs.gentoo.org/870412
--- a/xdisp.c
+++ b/xdisp.c
@@ -551,3 +551,3 @@
struct sunclock *
-makeClockContext(wid, ht, win, pix, gc)
+makeClockContext(wid, ht, win, pix)
int wid;

View File

@ -22,14 +22,18 @@ BDEPEND="
virtual/pkgconfig
X? ( sys-devel/gcc )"
PATCHES=(
"${FILESDIR}"/${P}-clang16.patch
)
src_prepare() {
default
# Respect CFLAGS if built without USE=X
sed -i -e "s/= -D/+= -D/" Makefile || die
# Fix compile if ncurses is built with separate libtinfo
sed -i -e "s:-lcurses:$($(tc-getPKG_CONFIG) --libs ncurses):" Imakefile Makefile || die
eapply_user
}
src_configure() {