Shut up glibc about _BSD_SOURCE being deprecated
authorQuentin Rameau <quinq@fifth.space>
Sat, 19 Dec 2015 18:58:03 +0000 (19:58 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 19 Dec 2015 19:32:17 +0000 (20:32 +0100)
config.mk

index faea37f..4d908a5 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -23,7 +23,7 @@ INCS = -I${X11INC} -I${FREETYPEINC}
 LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
 
 # flags
-CPPFLAGS = -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
 CFLAGS   = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
 LDFLAGS  = -s ${LIBS}