From 4b70ff91375efbc57f963f26dc2fea7270dbb1da Mon Sep 17 00:00:00 2001 From: Allanis <allanis@saracraft.net> Date: Fri, 14 Jun 2013 13:53:09 +0100 Subject: [PATCH] [Add] _POSIX_SOURCE if we are on Linux. --- bin/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/Makefile b/bin/Makefile index 820d1a3..1a1d274 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -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