[coreboot-gerrit] New patch to review for coreboot: util/cbfstool: find strdup(3) on NetBSD
Jonathan A. Kollasch (jakllsch@kollasch.net)
gerrit at coreboot.org
Mon Jul 6 15:29:41 CEST 2015
Jonathan A. Kollasch (jakllsch at kollasch.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10809
-gerrit
commit 972c6a84c0729424bc3b4fcaa24619b8723754fb
Author: Jonathan A. Kollasch <jakllsch at kollasch.net>
Date: Mon Jul 6 08:29:00 2015 -0500
util/cbfstool: find strdup(3) on NetBSD
Change-Id: I974c6c8733356cc8ea4e0505136a34b6055abf0c
Signed-off-by: Jonathan A. Kollasch <jakllsch at kollasch.net>
---
util/cbfstool/Makefile.inc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/util/cbfstool/Makefile.inc b/util/cbfstool/Makefile.inc
index dde8c68..19e9414 100644
--- a/util/cbfstool/Makefile.inc
+++ b/util/cbfstool/Makefile.inc
@@ -46,6 +46,9 @@ TOOLCFLAGS += -Wcast-qual -Wmissing-prototypes -Wredundant-decls -Wshadow
TOOLCFLAGS += -Wstrict-prototypes -Wwrite-strings
TOOLCPPFLAGS ?= -D_DEFAULT_SOURCE # memccpy() from string.h
TOOLCPPFLAGS += -D_POSIX_C_SOURCE=200809L # strdup() from string.h
+ifeq ($(shell uname -s), NetBSD)
+TOOLCPPFLAGS += -D_XOPEN_SOURCE=700 # strdup() from string.h
+endif
TOOLCPPFLAGS += -I$(top)/util/cbfstool/flashmap
TOOLCPPFLAGS += -I$(top)/util/cbfstool
TOOLCPPFLAGS += -I$(objutil)/cbfstool
More information about the coreboot-gerrit
mailing list