flashrom: fix build with musl
authorÁlvaro Fernández Rojas <redacted>
Wed, 17 Jun 2015 19:30:38 +0000 (21:30 +0200)
committerÁlvaro Fernández Rojas <redacted>
Wed, 17 Jun 2015 19:34:08 +0000 (21:34 +0200)
Signed-off-by: Álvaro Fernández Rojas <redacted>
utils/flashrom/Makefile
utils/flashrom/patches/0002-fix-musl-compatibility.patch [new file with mode: 0644]

index 702e63bed1aaae9bee183c395276568e81fd5278..af7b5e1dd0fa8547e6da48b6ebf5388dfdcb3f52 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=flashrom
 PKG_VERSION:=0.9.8
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://download.flashrom.org/releases
diff --git a/utils/flashrom/patches/0002-fix-musl-compatibility.patch b/utils/flashrom/patches/0002-fix-musl-compatibility.patch
new file mode 100644 (file)
index 0000000..b52f8b2
--- /dev/null
@@ -0,0 +1,12 @@
+diff -uprN a/linux_spi.c b/linux_spi.c
+--- a/linux_spi.c      2015-06-17 20:50:36.492963100 +0200
++++ b/linux_spi.c      2015-06-17 20:50:00.444860800 +0200
+@@ -22,7 +22,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
+-#include <sys/fcntl.h>
++#include <fcntl.h>
+ #include <errno.h>
+ #include <ctype.h>
+ #include <unistd.h>
git clone https://git.99rst.org/PROJECT