net-misc/suite3270: Fix unknown type name wint_t on musl

While building on musl we get build error 'error: unknown type name
wint_t; did you mean ino_t?'. This patch fixes it.

Closes: https://bugs.gentoo.org/713618

Signed-off-by: brahmajit das <listout@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26545
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
brahmajit das
2022-07-30 19:26:00 +03:00
committed by Arthur Zamarin
parent 0089de502a
commit 4682f355ba
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,12 @@
# Fix unknown type name wint_t when building against musl
# Closes: https://bugs.gentoo.org/713618
--- a/c3270/screen.c
+++ b/c3270/screen.c
@@ -63,6 +63,7 @@
#include "utils.h"
#include "xio.h"
#include "xscroll.h"
+#include "wctype.h"
#include "cscreen.h"
@@ -64,6 +64,10 @@ src_prepare() {
export ac_cv_path_install="${S}/_install"
}
PATCHES=(
"${FILESDIR}"/${PN}-4.1-musl-wint-t-fix.patch
)
src_configure() {
econf \
--cache-file="${S}"/config.cache \