From: Christoph Lohmann <20h@r-36.net> Date: Sat, 17 Jan 2015 06:21:15 +0000 (+0100) Subject: Newer libc want _DEFAULT_SOURCE. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=a5b85836ac04a82f965a9d7fb2a011d614166610;p=surf.git Newer libc want _DEFAULT_SOURCE. --- diff --git a/config.mk b/config.mk index b7a902f..e49fa24 100644 --- a/config.mk +++ b/config.mk @@ -18,7 +18,7 @@ INCS = -I. -I/usr/include -I${X11INC} ${GTKINC} LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0 # flags -CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE +CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} LDFLAGS = -g ${LIBS}