From 88a54db5925e1678047dcade823a3096327f21fc Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 9 Feb 2021 03:38:50 +0300 Subject: [PATCH] util/inteltool: Fix building with musl libc 1. Make sure __always_inline is defined. 2. To test if we're on Linux, check presence of __linux__ instead of __GLIBC__. Change-Id: I2ccfc4d2ef4c60877e24508f9926b533cffec0ed Signed-off-by: Evgeny Zinoviev Reviewed-on: https://review.coreboot.org/c/coreboot/+/50412 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/inteltool/inteltool.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/inteltool/inteltool.h b/util/inteltool/inteltool.h index 41a9957454..986a03c1f3 100644 --- a/util/inteltool/inteltool.h +++ b/util/inteltool/inteltool.h @@ -4,6 +4,9 @@ #ifndef INTELTOOL_H #define INTELTOOL_H 1 +#if defined(__linux__) +#include +#endif #include #include @@ -17,6 +20,7 @@ #define __DARWIN__ #include #endif + #ifdef __NetBSD__ #include #else