Philipp Deppenwiese merged this change.

View Change

Approvals: build bot (Jenkins): Verified Paul Menzel: Looks good to me, but someone else must approve Philipp Deppenwiese: Looks good to me, approved
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>
---
M util/intelmetool/intelmetool.c
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/util/intelmetool/intelmetool.c b/util/intelmetool/intelmetool.c
index 0b0e509..14cb035 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>

To view, visit change 23834. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia27203cf47b9be3f7bf1ad422c8f490caeae8f56
Gerrit-Change-Number: 23834
Gerrit-PatchSet: 5
Gerrit-Owner: Ivan J. <parazyd@dyne.org>
Gerrit-Reviewer: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Gerrit-Reviewer: Trammell Hudson <hudson@trmm.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>