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:
parent
df8a889bd0
commit
8776147783
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue