Skip to content

Commit

Permalink
net-misc/wol: fix compilation with musl
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/712558
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <[email protected]>
  • Loading branch information
ConiKost committed Aug 27, 2020
1 parent f590842 commit a9d1b1f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions net-misc/wol/files/wol-0.7.1-musl.patch
Original file line number Diff line number Diff line change
@@ -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_ */
2 changes: 2 additions & 0 deletions net-misc/wol/wol-0.7.1-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9d1b1f

Please sign in to comment.