mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
tests: enable _DARWIN_C_SOURCE globally in order to fix compiler errors
This commit is contained in:
parent
5007c9c3de
commit
caaef4ac07
2 changed files with 4 additions and 4 deletions
4
Makefile
4
Makefile
|
@ -71,6 +71,10 @@ LDLIBS =
|
|||
CFLAGS += -std=c11 -MMD -mcx16 -I$(BUILDDIR)/include -I$(SRCDIR)/include
|
||||
CFLAGS += -Wall -Werror -fdiagnostics-color=auto -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE=1
|
||||
|
||||
ifeq ($(PLATFORM),Darwin)
|
||||
CFLAGS += -D_DARWIN_C_SOURCE
|
||||
endif
|
||||
|
||||
LDFLAGS += -L$(BUILDDIR)
|
||||
|
||||
# Some tools
|
||||
|
|
|
@ -26,10 +26,6 @@ LIBS = $(patsubst %, lib%, $(SONAMES))
|
|||
|
||||
LIB_CFLAGS += $(CFLAGS) -fPIC
|
||||
|
||||
ifeq ($(shell uname),Darwin)
|
||||
LIB_CFLAGS += -D_DARWIN_C_SOURCE=1
|
||||
endif
|
||||
|
||||
include $(patsubst %, lib/Makefile.%.inc, $(SONAMES))
|
||||
|
||||
$(BUILDDIR)/include/villas/config.h: include/villas/config.h.in Makefile.config | $$(dir $$@)
|
||||
|
|
Loading…
Add table
Reference in a new issue