config.mk: set DEFAULT_SOURCE

This suppresses warnings about usleep and strdup on Linux glibc and musl.

(Also tested on OpenBSD and FreeBSD, which didn't give such a warning).

Thanks to quinq for reporting it.
This commit is contained in:
Hiltjo Posthuma 2020-09-18 12:59:17 +02:00
parent 3a51eafd3a
commit 02a2f77fbb
1 changed files with 1 additions and 1 deletions

View File

@ -24,4 +24,4 @@ LIBS = -L${X11LIB} -lX11 -lXtst -lXft ${XINERAMALIBS} \
# use system flags
SVKBD_CFLAGS = ${CFLAGS} ${INCS}
SVKBD_LDFLAGS = ${LDFLAGS} ${LIBS}
SVKBD_CPPFLAGS = ${CPPFLAGS} -DVERSION=\"VERSION\" ${XINERAMAFLAGS} -DLAYOUT=\"layout.${LAYOUT}.h\"
SVKBD_CPPFLAGS = ${CPPFLAGS} -D_DEFAULT_SOURCE -DVERSION=\"VERSION\" ${XINERAMAFLAGS} -DLAYOUT=\"layout.${LAYOUT}.h\"