mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
tools/Config.mk: add -DHAVE_STRNDUP=1
In all POSIX environments (Linux, Cygwin, MSYS2, macOS) strndup() function is available. add HOSTCFLAGS += -DHAVE_STRTOK_C=1 -DHAVE_STRNDUP=1 Required after PR #16396 Signed-off-by: simbit18 <simbit18@gmail.com>
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ else
|
||||
|
||||
HOSTCC ?= cc
|
||||
HOSTCFLAGS ?= -O2 -Wall -Wstrict-prototypes -Wshadow
|
||||
HOSTCFLAGS += -DHAVE_STRTOK_C=1
|
||||
HOSTCFLAGS += -DHAVE_STRTOK_C=1 -DHAVE_STRNDUP=1
|
||||
|
||||
ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
|
||||
HOSTCFLAGS += -DHOST_CYGWIN=1
|
||||
|
||||
Reference in New Issue
Block a user