commit:     a9d1b1f359f8913a436f9f83d62d155916c40271
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 27 20:01:44 2020 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Thu Aug 27 20:59:12 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9d1b1f3

net-misc/wol: fix compilation with musl

Closes: https://bugs.gentoo.org/712558
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-misc/wol/files/wol-0.7.1-musl.patch | 17 +++++++++++++++++
 net-misc/wol/wol-0.7.1-r2.ebuild        |  2 ++
 2 files changed, 19 insertions(+)

diff --git a/net-misc/wol/files/wol-0.7.1-musl.patch 
b/net-misc/wol/files/wol-0.7.1-musl.patch
new file mode 100644
index 00000000000..c7c0dc6028c
--- /dev/null
+++ b/net-misc/wol/files/wol-0.7.1-musl.patch
@@ -0,0 +1,17 @@
+--- a/lib/getline.h
++++ b/lib/getline.h
+@@ -27,6 +27,7 @@
+ #  endif
+ # endif
+ 
++# if defined (__GLIBC__)
+ # if __GLIBC__ < 2
+ int
+ getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
+@@ -34,5 +35,6 @@
+ int
+ getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE 
*_stream));
+ # endif
++# endif
+ 
+ #endif /* not GETLINE_H_ */

diff --git a/net-misc/wol/wol-0.7.1-r2.ebuild b/net-misc/wol/wol-0.7.1-r2.ebuild
index 8ee1f1db407..67f55caf695 100644
--- a/net-misc/wol/wol-0.7.1-r2.ebuild
+++ b/net-misc/wol/wol-0.7.1-r2.ebuild
@@ -14,6 +14,8 @@ SLOT="0"
 KEYWORDS="amd64 arm ppc ppc64 x86"
 IUSE="nls"
 
+PATCHES=( "${FILESDIR}/${P}-musl.patch" )
+
 src_configure() {
        local myeconfargs=(
                --disable-rpath

Reply via email to