summaryrefslogtreecommitdiff
path: root/util/inteltool
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-02-09 03:38:50 +0300
committerStefan Reinauer <stefan.reinauer@coreboot.org>2023-06-10 00:52:54 +0000
commit88a54db5925e1678047dcade823a3096327f21fc (patch)
tree299e97e7bf8aeac8caf1a27eab2309ba1a25c818 /util/inteltool
parentac0e7448e423fd2b125e147a70e3d45977fd4c58 (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')
-rw-r--r--util/inteltool/inteltool.h4
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