summaryrefslogtreecommitdiffhomepage
path: root/config.mk
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-04-03 17:25:16 +0200
committerbakkeby <[email protected]>2020-04-03 17:25:16 +0200
commitb3d6a47f4f0686ac45cd69a55ebab45e631786c7 (patch)
treef4ed0096c1d1abeb44dda16fafd4b97ad3ae6e7e /config.mk
parent674c00594b39163e05e85e05f8026f0602a2f3ef (diff)
downloaddwm-flexipatch-b3d6a47f4f0686ac45cd69a55ebab45e631786c7.tar.gz
dwm-flexipatch-b3d6a47f4f0686ac45cd69a55ebab45e631786c7.zip
config.mk: fix POSIX_C_SOURCE macro for feature test for snprintf()
The feature test was incorrect: _POSIX_C_SOURCE=2 "The value 2 or greater additionally exposes definitions for POSIX.2-1992." http://man7.org/linux/man-pages/man7/feature_test_macros.7.html A higher value is needed (atleast 1995): https://pubs.opengroup.org/onlinepubs/9699919799/functions/snprintf.html FreeBSD feature test macro: on https://github.com/freebsd/freebsd/blob/master/include/stdio.h line 297 This was already fixed in dmenu. This fixes a warning on FreeBSD, reported by Plasmoduck on IRC, thanks.
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 69be9b0..888fe47 100644
--- a/config.mk
+++ b/config.mk
@@ -38,7 +38,7 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} ${XRENDER} ${MPDCLIENT
# flags
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}