From: Gwenhael Goavec-Merou <[email protected]>

When musl is used to provides libc flashrom built fail with :
[...]
rayer_spi.c:(.text+0x95): undefined reference to `outb'
[...]
satamv.c:(.text+0x5e): undefined reference to `outl'
satamv.c:(.text+0x7b): undefined reference to `outb'
collect2: error: ld returned 1 exit status

This patch changed test on __GLIBC__ by __linux__ to obtain a more generic
verification.

Patch based on :
http://git.buildroot.net/buildroot/commit/package/exfat-utils/0001-fix-compiling-with-non-glibc-libcs.patch?id=2ca62551c04d3bcb0e2e83b9f4f5d3ff8d12110e

Signed-off-by: Gwenhael Goavec-Merou <[email protected]>
---
 hwaccess.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hwaccess.h b/hwaccess.h
index 3e46192..cf27577 100644
--- a/hwaccess.h
+++ b/hwaccess.h
@@ -27,7 +27,7 @@
 #include "platform.h"
 
 #if IS_X86
-#if defined(__GLIBC__)
+#if defined(__linux__)
 #include <sys/io.h>
 #endif
 #endif
-- 
2.4.9


_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to