diff --git a/srcpkgs/libnfc/patches/fix-musl.patch b/srcpkgs/libnfc/patches/fix-musl.patch new file mode 100644 index 00000000000..e2a3a000f55 --- /dev/null +++ b/srcpkgs/libnfc/patches/fix-musl.patch @@ -0,0 +1,10 @@ +--- libnfc/buses/spi.c.orig 2015-09-02 23:53:39.609374047 +0200 ++++ libnfc/buses/spi.c 2015-09-02 23:53:44.994373644 +0200 +@@ -51,6 +51,7 @@ + #include + #include + #include ++#include + + #include + #include "nfc-internal.h" diff --git a/srcpkgs/libnfc/template b/srcpkgs/libnfc/template index d6f8f8478bb..fbdc5187d03 100644 --- a/srcpkgs/libnfc/template +++ b/srcpkgs/libnfc/template @@ -1,7 +1,7 @@ # Template file for 'libnfc' pkgname=libnfc version=1.7.1 -revision=1 +revision=2 wrksrc="${pkgname}-${pkgname}-${version}" build_style=cmake short_desc="Low level NFC SDK and Programmers API" @@ -12,6 +12,7 @@ license="GPL-3" homepage="http://nfc-tools.org/" distfiles="https://github.com/nfc-tools/libnfc/archive/libnfc-${version}.tar.gz" checksum=30de35b4f1af3f57dab40d91ffb2275664a35859ff2b014ba7b226aa3f5465f5 +CFLAGS="-D_GNU_SOURCE" pre_configure() { sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" contrib/udev/42-pn53x.rules