From: Gwenhael Goavec-Merou gwenhael.goavec-merou@trabucayre.com
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-compi...
Signed-off-by: Gwenhael Goavec-Merou gwenhael.goavec-merou@trabucayre.com --- 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