mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
arch/sim: Fix macOS error: 'sem_init' is deprecated
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
406c6ae4dd
commit
76c2ede936
@@ -79,6 +79,10 @@ VPATH = sim
|
||||
DEPPATH = $(patsubst %,--dep-path %,$(subst :, ,$(VPATH)))
|
||||
|
||||
HOSTCFLAGS += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)}
|
||||
ifeq ($(CONFIG_HOST_MACOS),y)
|
||||
HOSTCFLAGS += -Wno-deprecated-declarations
|
||||
endif
|
||||
|
||||
HOSTSRCS = up_hostmemory.c up_hosttime.c
|
||||
ifneq ($(CONFIG_HOST_MACOS),y)
|
||||
STDLIBS += -lrt
|
||||
|
||||
Reference in New Issue
Block a user