svkbd

simple virtual keyboard
git clone git://git.suckless.org/svkbd
Log | Files | Refs | README | LICENSE

commit 02a2f77fbbfdf83b19f4f6b94597d4c2c70a3153
parent 3a51eafd3aa60d130f8f4ea40273e307246f1f37
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 18 Sep 2020 12:59:17 +0200

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.

Diffstat:
Mconfig.mk | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.mk b/config.mk @@ -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\"