arch/sim: Fix macOS error: 'sem_init' is deprecated

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-08-29 20:18:48 -07:00 committed by Masayuki Ishikawa
parent 406c6ae4dd
commit 76c2ede936
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ VPATH = sim
DEPPATH = $(patsubst %,--dep-path %,$(subst :, ,$(VPATH))) DEPPATH = $(patsubst %,--dep-path %,$(subst :, ,$(VPATH)))
HOSTCFLAGS += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)} HOSTCFLAGS += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)}
ifeq ($(CONFIG_HOST_MACOS),y)
HOSTCFLAGS += -Wno-deprecated-declarations
endif
HOSTSRCS = up_hostmemory.c up_hosttime.c HOSTSRCS = up_hostmemory.c up_hosttime.c
ifneq ($(CONFIG_HOST_MACOS),y) ifneq ($(CONFIG_HOST_MACOS),y)
STDLIBS += -lrt STDLIBS += -lrt