aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-09-27 22:38:14 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-09-27 22:38:14 +0200
commit2d2175ff6f67e2bc85138d3f359d2f7580bcb754 (patch)
treef0d24b4586134f3e3a26acaa2dded894399ec1ea
parentbbf7b95dc93a47dbb5a4143b903797dc97197515 (diff)
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!
-rw-r--r--config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 95690f9..7b08bf1 100644
--- a/config.mk
+++ b/config.mk
@@ -23,7 +23,7 @@ INCS = -I${X11INC} -I${FREETYPEINC}
23LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} 23LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
24 24
25# flags 25# flags
26CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} 26CPPFLAGS = -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
27CFLAGS = -ansi -pedantic -Wall -Os ${INCS} ${CPPFLAGS} 27CFLAGS = -ansi -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
28LDFLAGS = -s ${LIBS} 28LDFLAGS = -s ${LIBS}
29 29