void-packages/srcpkgs/flashrom/patches/spi-ioctl.patch
2015-08-19 15:55:42 +02:00

33 lines
618 B
Diff

--- linux_spi.c.orig
+++ 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>
--- linux_spi.c.orig
+++ 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>
--- hwaccess.h.orig
+++ 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