mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
Merge pull request #8544 from smlng/osx/cflags
cpu/native: reduce scope of CFLAGS for OSX compatibility
This commit is contained in:
commit
1b2ce2d559
@ -3,6 +3,10 @@ MODULE = cpu
|
||||
DIRS += periph
|
||||
DIRS += vfs
|
||||
|
||||
ifeq ($(shell uname -s),Darwin)
|
||||
CFLAGS += -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE
|
||||
endif
|
||||
|
||||
ifneq (,$(filter netdev_tap,$(USEMODULE)))
|
||||
DIRS += netdev_tap
|
||||
endif
|
||||
|
||||
@ -7,7 +7,3 @@ endif
|
||||
|
||||
USEMODULE += periph
|
||||
USEMODULE += periph_uart
|
||||
|
||||
ifeq ($(shell uname -s),Darwin)
|
||||
export CFLAGS += -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE
|
||||
endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user