forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters