summaryrefslogtreecommitdiff
path: root/util/intelmetool
diff options
context:
space:
mode:
authorIvan J <parazyd@dyne.org>2018-02-21 10:52:51 +0100
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-04-05 14:01:39 +0000
commit85c76c9bc0a0a09ae23c00b41af8d411546b706a (patch)
tree851d82b6b6d233ddf95fc5b70a4f4b589d9b73de /util/intelmetool
parentf92fcabba8dbb1510df6cee545b2cba5ac7e047a (diff)
downloadcoreboot-85c76c9bc0a0a09ae23c00b41af8d411546b706a.tar.xz
intelmetool: Include <sys/io.h> for musl-libc
This allows compiling the program using musl-libc, since otherwise iopl(2) is undeclared. Change-Id: Ia27203cf47b9be3f7bf1ad422c8f490caeae8f56 Signed-off-by: Ivan J. <parazyd@dyne.org> Reviewed-on: https://review.coreboot.org/23834 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/intelmetool')
-rw-r--r--util/intelmetool/intelmetool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/intelmetool/intelmetool.c b/util/intelmetool/intelmetool.c
index 0b0e509bcc..14cb035a1f 100644
--- a/util/intelmetool/intelmetool.c
+++ b/util/intelmetool/intelmetool.c
@@ -18,6 +18,7 @@
#include <unistd.h>
#include <string.h>
#include <cpuid.h>
+#include <sys/io.h>
#ifdef __NetBSD__
#include <machine/sysarch.h>