From c1b910fa8f768861f67d2e1b8475e1bc97fc3594 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Thu, 2 Jul 2020 21:00:28 +0800 Subject: [PATCH] wol: fix build on x86 --- .../wol/patches/001-fix-build-on-x86.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/lean/wol/patches/001-fix-build-on-x86.patch diff --git a/package/lean/wol/patches/001-fix-build-on-x86.patch b/package/lean/wol/patches/001-fix-build-on-x86.patch new file mode 100644 index 000000000..5703beebc --- /dev/null +++ b/package/lean/wol/patches/001-fix-build-on-x86.patch @@ -0,0 +1,19 @@ +diff --git a/lib/getline.h b/lib/getline.h +index 991184c..e41865c 100644 +--- a/lib/getline.h ++++ b/lib/getline.h +@@ -27,6 +27,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + # endif + # endif + ++# ifdef _MUSL_ + # if __GLIBC__ < 2 + int + getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream)); +@@ -34,5 +35,6 @@ getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream)); + int + getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream)); + # endif ++# endif + + #endif /* not GETLINE_H_ */