aboutsummaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2015-03-20 06:46:59 +0000
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2015-03-20 07:29:28 +0000
commit288f80cb06b442ef0f55ea62bbceb3260338bf7a (patch)
tree1f3c3a9193e6fcae98f8769a9a39d9cb96e54c94 /config.mk
parentc9357a8edfe6d047da95b85c5f3c18b9db40d172 (diff)
downloadst-288f80cb06b442ef0f55ea62bbceb3260338bf7a.tar.gz
st-288f80cb06b442ef0f55ea62bbceb3260338bf7a.tar.bz2
st-288f80cb06b442ef0f55ea62bbceb3260338bf7a.zip
Remove strsep() call
strsep() is not a POSIX function, and it means that every system needs different defines to expose it. If the prototype of strsep is not exposed then an ugly int/pointer is done and it might mean a crash. The best solution?, to remove the strsep and make a custom loop. If C programmers cannot do this kind of loops without calling a library function, then maybe we should move all the suckless software to Java.
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 7ae510e..3026d87 100644
--- a/config.mk
+++ b/config.mk
@@ -19,7 +19,7 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lm -lrt -lX11 -lutil -lXext -lXft \
`pkg-config --libs freetype2`
# flags
-CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
+CPPFLAGS = -DVERSION=\"${VERSION}\" -D_XOPEN_SOURCE=600
CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS}
LDFLAGS += -g ${LIBS}