wol: Fix mismatching declarations; unbreaks *-musl
This commit is contained in:
parent
b440c5a31b
commit
4e986b9dd3
1 changed files with 8 additions and 0 deletions
|
@ -11,3 +11,11 @@ license="GPL-2"
|
|||
homepage="http://wake-on-lan.sourceforge.net/"
|
||||
distfiles="${SOURCEFORGE_SITE}/ahh/${pkgname}-${version}.tar.gz"
|
||||
checksum=e0086c9b9811df2bdf763ec9016dfb1bcb7dba9fa6d7858725b0929069a12622
|
||||
|
||||
pre_configure() {
|
||||
# Fix mismatching declarations - unbreaks target *-musl
|
||||
sed -i lib/realloc.c \
|
||||
-e "s/char \*malloc ();/void *malloc (size_t);/" \
|
||||
-e "s/char \*realloc ();/void *realloc (void*, size_t);/"
|
||||
sed -i lib/getline.h -e "s/^int$/ssize_t/"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue