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:
parent
3a51eafd3a
commit
02a2f77fbb
@ -24,4 +24,4 @@ LIBS = -L${X11LIB} -lX11 -lXtst -lXft ${XINERAMALIBS} \
|
|||||||
# use system flags
|
# use system flags
|
||||||
SVKBD_CFLAGS = ${CFLAGS} ${INCS}
|
SVKBD_CFLAGS = ${CFLAGS} ${INCS}
|
||||||
SVKBD_LDFLAGS = ${LDFLAGS} ${LIBS}
|
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\"
|
||||||
|
Loading…
Reference in New Issue
Block a user