mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-26 20:02:30 +01:00
34 lines
744 B
Diff
34 lines
744 B
Diff
--- 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
|