diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-02-09 03:38:50 +0300 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2023-06-10 00:52:54 +0000 |
commit | 88a54db5925e1678047dcade823a3096327f21fc (patch) | |
tree | 299e97e7bf8aeac8caf1a27eab2309ba1a25c818 /util/inteltool/inteltool.h | |
parent | ac0e7448e423fd2b125e147a70e3d45977fd4c58 (diff) |
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>
Diffstat (limited to 'util/inteltool/inteltool.h')
-rw-r--r-- | util/inteltool/inteltool.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <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 |