Philipp Deppenwiese has submitted this change and it was merged. ( https://review.coreboot.org/23834 )
Change subject: intelmetool: Include <sys/io.h> for musl-libc ......................................................................
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(-)
Approvals: build bot (Jenkins): Verified Paul Menzel: Looks good to me, but someone else must approve Philipp Deppenwiese: Looks good to me, approved
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>