From: Jason Woofenden Date: Mon, 3 Apr 2017 06:40:33 +0000 (-0400) Subject: s/_BSD_SOURCE/_DEFAULT_SOURCE/ to make compiler happy X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=201e9d23524ed687452354a7b3f35a45f78e62c8 s/_BSD_SOURCE/_DEFAULT_SOURCE/ to make compiler happy --- diff --git a/config.mk b/config.mk index 1b96b93..3b5b42e 100644 --- a/config.mk +++ b/config.mk @@ -19,7 +19,7 @@ INCS = -I${X11INC} LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} # flags -CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Wno-unused-function -Os ${INCS} ${CPPFLAGS} LDFLAGS = -s ${LIBS}