diff options
| author | bakkeby <[email protected]> | 2020-04-03 17:25:16 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-04-03 17:25:16 +0200 |
| commit | b3d6a47f4f0686ac45cd69a55ebab45e631786c7 (patch) | |
| tree | f4ed0096c1d1abeb44dda16fafd4b97ad3ae6e7e /config.mk | |
| parent | 674c00594b39163e05e85e05f8026f0602a2f3ef (diff) | |
| download | dwm-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.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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} |
