1
0
Fork 0
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:
Steffen Vogel 2018-05-23 00:17:02 +02:00
parent 5007c9c3de
commit caaef4ac07
2 changed files with 4 additions and 4 deletions

View file

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

View file

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