1
0
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:
Francisco Acosta 2018-02-13 14:29:54 +01:00 committed by GitHub
commit 1b2ce2d559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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