diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-04-03 15:36:32 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-04-03 15:36:32 +0200 |
commit | c82db690cc0c4624dad4dc6ae899020799ec84db (patch) | |
tree | adac6a34f53e3cf5c5bc08421afa364d41249684 /util.c | |
parent | cb3f58ad06993f7ef3a7d8f61468012e2b786cab (diff) | |
download | dwm-c82db690cc0c4624dad4dc6ae899020799ec84db.tar dwm-c82db690cc0c4624dad4dc6ae899020799ec84db.tar.gz dwm-c82db690cc0c4624dad4dc6ae899020799ec84db.tar.bz2 |
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 'util.c')
0 files changed, 0 insertions, 0 deletions