[flashrom] [PATCH 1/2] Add missing header for musl compatibility
Gwenhael Goavec-Merou
gwenj at trabucayre.com
Wed Oct 14 10:43:07 CEST 2015
From: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>
According to :
http://autobuild.buildroot.net/results/3de/3de936d9be79e151e66af15193084d82a0f2c04a/build-end.log
linux/ioctl.h header must be included in linux_spi.c to obtain missing _IOC_SIZEBITS.
Patch based on :
http://git.buildroot.net/buildroot/commit/package/c-periphery/0001-Add-missing-header-for-musl-compatibility.patch?id=60974ee92dd8ff9e43cc6b785ea5131a8851e74c
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>
---
linux_spi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux_spi.c b/linux_spi.c
index 26725e1..8d72420 100644
--- a/linux_spi.c
+++ b/linux_spi.c
@@ -28,6 +28,7 @@
#include <unistd.h>
#include <linux/types.h>
#include <linux/spi/spidev.h>
+#include <linux/ioctl.h>
#include <sys/ioctl.h>
#include "flash.h"
#include "chipdrivers.h"
--
2.4.9
More information about the flashrom
mailing list