Stefan Reinauer has submitted this change. ( https://review.coreboot.org/c/coreboot/+/50412?usp=email )
Change subject: util/inteltool: Fix building with musl libc ......................................................................
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 me@ch1p.io Reviewed-on: https://review.coreboot.org/c/coreboot/+/50412 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Stefan Reinauer stefan.reinauer@coreboot.org --- M util/inteltool/inteltool.h 1 file changed, 4 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Stefan Reinauer: Looks good to me, approved
diff --git a/util/inteltool/inteltool.h b/util/inteltool/inteltool.h index 41a9957..986a03c 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 <linux/stddef.h> +#endif #include <arch/mmio.h> #include <commonlib/helpers.h>
@@ -17,6 +20,7 @@ #define __DARWIN__ #include <DirectHW/DirectHW.h> #endif + #ifdef __NetBSD__ #include <pciutils/pci.h> #else