summaryrefslogtreecommitdiff
path: root/nuttx/tools/Makefile.host
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/tools/Makefile.host')
-rw-r--r--nuttx/tools/Makefile.host7
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/tools/Makefile.host b/nuttx/tools/Makefile.host
index 882a3c0ae..478625008 100644
--- a/nuttx/tools/Makefile.host
+++ b/nuttx/tools/Makefile.host
@@ -37,6 +37,13 @@ TOPDIR ?= ${shell pwd}/..
-include $(TOPDIR)/Make.defs
include ${TOPDIR}/tools/Config.mk
+# strtok_r is used in some tools, but does not seem to be available in
+# the MinGW environment.
+
+ifneq ($(CONFIG_WINDOWS_NATIVE),y)
+ HOSTCFLAGS += -D HAVE_STRTOK_C
+endif
+
all: mkconfig$(HOSTEXEEXT) mkversion$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) bdf-converter$(HOSTEXEEXT) mksymtab$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT)
default: mkconfig$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT)