]> git.armaanb.net Git - stagit.git/commitdiff
stop glibc complaining about _BSD_SOURCE being deprecated
authorQuentin Rameau <quinq@fifth.space>
Sat, 9 Jan 2016 23:47:45 +0000 (00:47 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Wed, 13 Jan 2016 20:58:08 +0000 (21:58 +0100)
config.mk

index 52ec91c3d6e39e18baa393e5f012d8b201506a4c..27835fa7034f7fdb623a3e210d38f82385fafa4d 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -13,7 +13,7 @@ LIBS = -L${GITLIB} -lgit2 -lc
 
 # debug
 CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic \
-       -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS}
+       -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
 LDFLAGS = ${LIBS}
 
 # optimized