From d01dfdebcf3722f5268d221f7c3e7c378b08fd33 Mon Sep 17 00:00:00 2001 From: notnyt Date: Sun, 17 Jan 2016 15:58:09 -0500 Subject: [PATCH] flashrom: include io.h to fix compile error This patch includes sys/io.h from flash.h to fix compile errors Signed-off-by: Rob Mosher --- utils/flashrom/Makefile | 2 +- utils/flashrom/patches/0003-fix-io-h-include.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 utils/flashrom/patches/0003-fix-io-h-include.patch diff --git a/utils/flashrom/Makefile b/utils/flashrom/Makefile index e6e38b431..7c66682ab 100644 --- a/utils/flashrom/Makefile +++ b/utils/flashrom/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=flashrom PKG_VERSION:=0.9.8 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://download.flashrom.org/releases diff --git a/utils/flashrom/patches/0003-fix-io-h-include.patch b/utils/flashrom/patches/0003-fix-io-h-include.patch new file mode 100644 index 000000000..50aa2a8fa --- /dev/null +++ b/utils/flashrom/patches/0003-fix-io-h-include.patch @@ -0,0 +1,12 @@ +diff -uprN a/linux_spi.c b/linux_spi.c +--- a/flash.h 2015-02-08 16:57:52.000000000 -0500 ++++ b/flash.h 2016-01-08 20:09:51.599387507 -0500 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + #if IS_WINDOWS + #include +