From 02a2f77fbbfdf83b19f4f6b94597d4c2c70a3153 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 18 Sep 2020 12:59:17 +0200 Subject: [PATCH] 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. --- config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.mk b/config.mk index 50d9c7f..c9a25f3 100644 --- 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\"