From 15a7e6bb98d3142e06e89dd4b11235f65a6245c1 Mon Sep 17 00:00:00 2001 From: smlng Date: Fri, 9 Feb 2018 17:44:41 +0100 Subject: [PATCH] cpu/native: reduce scope of CFLAGS for OSX compatibility --- cpu/native/Makefile | 4 ++++ cpu/native/Makefile.include | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu/native/Makefile b/cpu/native/Makefile index 343092dfab..1891eebc41 100644 --- a/cpu/native/Makefile +++ b/cpu/native/Makefile @@ -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 diff --git a/cpu/native/Makefile.include b/cpu/native/Makefile.include index 58c603eff5..b7a8d56bb8 100644 --- a/cpu/native/Makefile.include +++ b/cpu/native/Makefile.include @@ -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