[hackers] [dmenu] config.mk: improve feature test check || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sun, 27 Sep 2015 22:44:21 +0200 (CEST)

commit 2d2175ff6f67e2bc85138d3f359d2f7580bcb754
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sun Sep 27 22:38:14 2015 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sun Sep 27 22:38:14 2015 +0200

    config.mk: improve feature test check
    
    this fixes a crash on NetBSD because it requires -D_XOPEN_SOURCE (strdup, usleep).
    
    thanks k0ga and stateless for reporting and fixing this issue!

diff --git a/config.mk b/config.mk
index 95690f9..7b08bf1 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -23,7 +23,7 @@ INCS = -I${X11INC} -I${FREETYPEINC}
 LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
 
 # flags
-CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CPPFLAGS = -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
 CFLAGS = -ansi -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
 LDFLAGS = -s ${LIBS}
 
Received on Sun Sep 27 2015 - 22:44:21 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 27 2015 - 22:48:12 CEST