aboutsummaryrefslogtreecommitdiffstats
path: root/main/flashrom/spi-ioctl.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2014-04-03 10:10:33 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2014-04-03 10:10:33 +0000
commitda11ca3495d429ce48502e6a71ec25843b769bcf (patch)
treeaaf4e959ee77e2c5d0c0f7934364425f8b920929 /main/flashrom/spi-ioctl.patch
parentc8f77ddc16be4e49d8995c2491470dff2e9bee77 (diff)
downloadaports-da11ca3495d429ce48502e6a71ec25843b769bcf.tar.bz2
aports-da11ca3495d429ce48502e6a71ec25843b769bcf.tar.xz
main/flashrom: fix musl build
Diffstat (limited to 'main/flashrom/spi-ioctl.patch')
-rw-r--r--main/flashrom/spi-ioctl.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/flashrom/spi-ioctl.patch b/main/flashrom/spi-ioctl.patch
new file mode 100644
index 0000000000..235f2d508f
--- /dev/null
+++ b/main/flashrom/spi-ioctl.patch
@@ -0,0 +1,33 @@
+--- flashrom-0.9.7.orig/linux_spi.c
++++ flashrom-0.9.7/linux_spi.c
+@@ -26,6 +26,7 @@
+ #include <errno.h>
+ #include <ctype.h>
+ #include <unistd.h>
++#include <asm/ioctl.h>
+ #include <linux/types.h>
+ #include <linux/spi/spidev.h>
+ #include <sys/ioctl.h>
+--- flashrom-0.9.7.orig/linux_spi.c
++++ flashrom-0.9.7/linux_spi.c
+@@ -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>
+--- flashrom-0.9.7.orig/hwaccess.h
++++ flashrom-0.9.7/hwaccess.h
+@@ -25,9 +25,7 @@
+ #define __HWACCESS_H__ 1
+
+ #if defined (__i386__) || defined (__x86_64__)
+-#if defined(__GLIBC__)
+ #include <sys/io.h>
+-#endif
+ #endif
+
+ #if NEED_PCI == 1