commit: 513769430e0f4001d33f8c430fa44b5abab14ded Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Sat Mar 27 21:54:36 2021 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Sat Mar 27 21:55:01 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51376943
net-dialup/minicom: fix compilation with musl Closes: https://bugs.gentoo.org/714676 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> net-dialup/minicom/files/minicom-2.7.1-musl.patch | 24 +++++++++++++++++++++++ net-dialup/minicom/minicom-2.7.1.ebuild | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/net-dialup/minicom/files/minicom-2.7.1-musl.patch b/net-dialup/minicom/files/minicom-2.7.1-musl.patch new file mode 100644 index 00000000000..da4ce13d0b8 --- /dev/null +++ b/net-dialup/minicom/files/minicom-2.7.1-musl.patch @@ -0,0 +1,24 @@ +--- a/src/dial.c ++++ b/src/dial.c +@@ -39,11 +39,9 @@ + #include "intl.h" + + #ifdef VC_MUSIC +-# if defined(__GLIBC__) + # include <sys/ioctl.h> + # include <sys/kd.h> + # include <sys/time.h> +-# endif + #endif + + enum { CURRENT_VERSION = 6 }; +--- a/src/getsdir.h ++++ b/src/getsdir.h +@@ -22,6 +22,7 @@ + * and licensing conditions. See the source, Luke. + */ + ++#include <sys/param.h> + #include <dirent.h> + + typedef struct dirEntry { /* structure of data item */ diff --git a/net-dialup/minicom/minicom-2.7.1.ebuild b/net-dialup/minicom/minicom-2.7.1.ebuild index 0397e7a41fc..8484224b3e1 100644 --- a/net-dialup/minicom/minicom-2.7.1.ebuild +++ b/net-dialup/minicom/minicom-2.7.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -26,6 +26,7 @@ PATCHES=( "${FILESDIR}"/${PN}-2.3-gentoo-runscript.patch "${FILESDIR}"/${PN}-2.7-lockdir.patch "${FILESDIR}"/${PN}-2.7.1-gcc-10.patch + "${FILESDIR}"/${PN}-2.7.1-musl.patch ) src_prepare() {