wol: Fix mismatching declarations; unbreaks *-musl

This commit is contained in:
jbu 2015-05-08 05:54:28 +02:00
parent b440c5a31b
commit 4e986b9dd3

View file

@ -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/"
}