summaryrefslogtreecommitdiffstats
path: root/main/flashrom/spi-ioctl.patch
blob: 83c57d82e911261d44d40171555625fea0294428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- flashrom-0.9.8.orig/linux_spi.c
+++ flashrom-0.9.8/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.8.orig/linux_spi.c
+++ flashrom-0.9.8/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.8.orig/hwaccess.h
+++ flashrom-0.9.8/hwaccess.h
@@ -25,9 +25,7 @@
 #define __HWACCESS_H__ 1
 
 #if IS_X86
-#if defined(__GLIBC__)
 #include <sys/io.h>
-#endif
 #endif
 
 #if NEED_PCI == 1