util/pgtblgen: Improve compatibility
Fix build on Debian/jessie Change-Id: I987e7a03441b40ab06ccd54a21e38aac81a1c28d Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48004 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
e2cb8696f0
commit
36c2ea4a63
|
@ -14,6 +14,6 @@ $(obj)/mainboard/$(MAINBOARDDIR)/pagetables: $(PGTBLGEN) $(obj)/config.h
|
||||||
|
|
||||||
$(PGTBLGEN): util/pgtblgen/pgtblgen.c
|
$(PGTBLGEN): util/pgtblgen/pgtblgen.c
|
||||||
printf " MAKE Creating PGTBLGEN tool\n"
|
printf " MAKE Creating PGTBLGEN tool\n"
|
||||||
$(HOSTCC) $< -I$(obj) -o $@
|
$(HOSTCC) -std=c99 $< -I$(obj) -o $@
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <getopt.h>
|
||||||
|
|
||||||
static void usage(char *argv[])
|
static void usage(char *argv[])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue