[hackers] [svkbd] config.mk: set DEFAULT_SOURCE || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 18 Sep 2020 13:00:47 +0200 (CEST)

commit 02a2f77fbbfdf83b19f4f6b94597d4c2c70a3153
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Fri Sep 18 12:59:17 2020 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Fri Sep 18 12:59:17 2020 +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.

diff --git a/config.mk b/config.mk
index 50d9c7f..c9a25f3 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -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\"
Received on Fri Sep 18 2020 - 13:00:47 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 18 2020 - 13:12:30 CEST