libnfc: fix musl.
This commit is contained in:
parent
46836446be
commit
504e3a9edd
2 changed files with 12 additions and 1 deletions
10
srcpkgs/libnfc/patches/fix-musl.patch
Normal file
10
srcpkgs/libnfc/patches/fix-musl.patch
Normal file
|
@ -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 <stdio.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
+#include <asm/ioctl.h>
|
||||
|
||||
#include <nfc/nfc.h>
|
||||
#include "nfc-internal.h"
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue