diff --git a/srcpkgs/sane/patches/musl.patch b/srcpkgs/sane/patches/musl.patch new file mode 100644 index 00000000000..7c0f7cdd27a --- /dev/null +++ b/srcpkgs/sane/patches/musl.patch @@ -0,0 +1,10 @@ +--- backend/kvs40xx.h.orig 2015-05-08 20:15:52.134639959 +0200 ++++ backend/kvs40xx.h 2015-05-08 20:16:00.189632027 +0200 +@@ -1,6 +1,7 @@ + #ifndef __KVS40XX_H + #define __KVS40XX_H + ++#include + /* + Copyright (C) 2009, Panasonic Russia Ltd. + */ diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template index daf73fa8ef3..6cd68539d79 100644 --- a/srcpkgs/sane/template +++ b/srcpkgs/sane/template @@ -1,7 +1,7 @@ # Template build file for 'sane'. pkgname=sane version=1.0.24 -revision=9 +revision=10 wrksrc="sane-backends-${version}" build_style=gnu-configure configure_args="--disable-locking --enable-avahi --disable-latex --enable-ipv6 @@ -100,6 +100,11 @@ if [ "$build_option_systemd" ]; then systemd_services="saned.socket on" fi +pre_configure() { + for f in $(find $wrksrc -type f -name *.[ch]); do + sed -e 's,u_char ,unsigned char ,g' -e 's,u_long,unsigned long ,g' -i $f + done +} post_install() { # fix hp officejets echo "#hpaio" >> ${DESTDIR}/etc/sane.d/dll.conf