From 36c2ea4a630fee8607599baab7d8a9dcd2f9ca53 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 25 Nov 2020 16:24:05 +0000 Subject: util/pgtblgen: Improve compatibility Fix build on Debian/jessie Change-Id: I987e7a03441b40ab06ccd54a21e38aac81a1c28d Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/48004 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- util/pgtblgen/Makefile.inc | 2 +- util/pgtblgen/pgtblgen.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'util/pgtblgen') diff --git a/util/pgtblgen/Makefile.inc b/util/pgtblgen/Makefile.inc index c4f3ef37b6..08fb6209e5 100644 --- a/util/pgtblgen/Makefile.inc +++ b/util/pgtblgen/Makefile.inc @@ -14,6 +14,6 @@ $(obj)/mainboard/$(MAINBOARDDIR)/pagetables: $(PGTBLGEN) $(obj)/config.h $(PGTBLGEN): util/pgtblgen/pgtblgen.c printf " MAKE Creating PGTBLGEN tool\n" - $(HOSTCC) $< -I$(obj) -o $@ + $(HOSTCC) -std=c99 $< -I$(obj) -o $@ endif diff --git a/util/pgtblgen/pgtblgen.c b/util/pgtblgen/pgtblgen.c index 640d0ba7be..7ed98b2825 100644 --- a/util/pgtblgen/pgtblgen.c +++ b/util/pgtblgen/pgtblgen.c @@ -9,6 +9,7 @@ #include #include #include +#include static void usage(char *argv[]) { -- cgit v1.2.3