Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48004 )
Change subject: util/pgtblgen: Improve compatibility ......................................................................
util/pgtblgen: Improve compatibility
Fix build on Debian/jessie
Change-Id: I987e7a03441b40ab06ccd54a21e38aac81a1c28d Signed-off-by: Patrick Georgi pgeorgi@google.com --- M util/pgtblgen/Makefile.inc M util/pgtblgen/pgtblgen.c 2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/48004/1
diff --git a/util/pgtblgen/Makefile.inc b/util/pgtblgen/Makefile.inc index c4f3ef3..08fb620 100644 --- a/util/pgtblgen/Makefile.inc +++ b/util/pgtblgen/Makefile.inc @@ -14,6 +14,6 @@
$(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 640d0ba..7ed98b2 100644 --- a/util/pgtblgen/pgtblgen.c +++ b/util/pgtblgen/pgtblgen.c @@ -9,6 +9,7 @@ #include <fcntl.h> #include <errno.h> #include <inttypes.h> +#include <getopt.h>
static void usage(char *argv[]) {
Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48004 )
Change subject: util/pgtblgen: Improve compatibility ......................................................................
Patch Set 1: Code-Review+2
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/48004 )
Change subject: util/pgtblgen: Improve compatibility ......................................................................
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 --- M util/pgtblgen/Makefile.inc M util/pgtblgen/pgtblgen.c 2 files changed, 2 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Martin Roth: Looks good to me, approved
diff --git a/util/pgtblgen/Makefile.inc b/util/pgtblgen/Makefile.inc index c4f3ef3..08fb620 100644 --- a/util/pgtblgen/Makefile.inc +++ b/util/pgtblgen/Makefile.inc @@ -14,6 +14,6 @@
$(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 640d0ba..7ed98b2 100644 --- a/util/pgtblgen/pgtblgen.c +++ b/util/pgtblgen/pgtblgen.c @@ -9,6 +9,7 @@ #include <fcntl.h> #include <errno.h> #include <inttypes.h> +#include <getopt.h>
static void usage(char *argv[]) {