Anastasia Klimchuk has uploaded this change for review.
tests: Guard Linux-specific linux/spidev.h header file
This allows unit tests to build on non-Linux platforms.
Change-Id: Icdb1b0cb29c5d62187153788ad5e0e631e8d0b62
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
---
M tests/lifecycle.h
1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/11/67311/1
diff --git a/tests/lifecycle.h b/tests/lifecycle.h
index 1379f7d..69f1119 100644
--- a/tests/lifecycle.h
+++ b/tests/lifecycle.h
@@ -18,7 +18,9 @@
#include <include/test.h>
#include <string.h>
+#if defined(__linux__) && !defined(__ANDROID__)
#include <linux/spi/spidev.h>
+#endif
#include "tests.h"
#include "libflashrom.h"
To view, visit change 67311. To unsubscribe, or for help writing mail filters, visit settings.