diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-03-27 22:54:36 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-03-27 22:55:01 +0100 |
commit | 513769430e0f4001d33f8c430fa44b5abab14ded (patch) | |
tree | 46fe745cbfda37f912b93ebc61e31b25defbd138 | |
parent | net-dialup/minicom: bump to version 2.8 (diff) | |
download | gentoo-513769430e0f4001d33f8c430fa44b5abab14ded.tar.gz gentoo-513769430e0f4001d33f8c430fa44b5abab14ded.tar.bz2 gentoo-513769430e0f4001d33f8c430fa44b5abab14ded.zip |
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@gentoo.org>
-rw-r--r-- | net-dialup/minicom/files/minicom-2.7.1-musl.patch | 24 | ||||
-rw-r--r-- | net-dialup/minicom/minicom-2.7.1.ebuild | 3 |
2 files changed, 26 insertions, 1 deletions
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 000000000000..da4ce13d0b8f --- /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 0397e7a41fc8..8484224b3e10 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() { |