[Add] _POSIX_SOURCE if we are on Linux.

This commit is contained in:
Allanis 2013-06-14 13:53:09 +01:00
parent 7e0963ad35
commit 4b70ff9137

View File

@ -25,6 +25,9 @@ CAL = -lopenal $(shell freealut-config --cflags)
CVORBIS =
CGL =
CFLAGS = $(CLUA) $(CPLUTO) $(CSDL) $(CXML) $(CTTF) $(CGL) $(CAL) $(CVORBIS) $(VERSION) -D$(OS)
ifeq ($(OS),LINUX)
CFLAGS += -D_POSIX_SOURCE
endif
ifdef DEBUG
CFLAGS += -W -Wall -Wextra -Wmissing-prototypes -Winline -Wcast-align \
-Wmissing-declarations -fno-inline -g3 -DDEBUG -DLUA_USE_APICHECK -std=c99