Skip to content

Commit

Permalink
arch/sim: Fix macOS error: 'sem_init' is deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Xiang Xiao <[email protected]>
  • Loading branch information
xiaoxiang781216 authored and masayuki2009 committed Sep 2, 2020
1 parent 406c6ae commit 76c2ede
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/sim/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76c2ede

Please sign in to comment.