[dev] [dmenu][PATCH] Add _XOPEN_SOURCE=500 define

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Sun, 22 Feb 2015 11:39:55 +0000

usleep needs _XOPEN_SOURCE=500 or
_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED. Some system publish it
with BSD_SOURCE but not all.
---
 config.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config.mk b/config.mk
index c0d466b..a641d56 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -17,7 +17,7 @@ INCS = -I${X11INC}
 LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
 
 # 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}
 
-- 
2.2.1
Received on Sun Feb 22 2015 - 12:39:55 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 22 2015 - 12:48:07 CET