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>
This commit is contained in:
Ivan J 2018-02-21 10:52:51 +01:00 committed by Philipp Deppenwiese
parent f92fcabba8
commit 85c76c9bc0
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <cpuid.h> #include <cpuid.h>
#include <sys/io.h>
#ifdef __NetBSD__ #ifdef __NetBSD__
#include <machine/sysarch.h> #include <machine/sysarch.h>