summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-12-12 14:57:53 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-12-12 14:57:53 +0100
commitcce2f78660bb76bd9d2e043cc30dac5da5100bd9 (patch)
tree30d2ebb0a2e915bf7632c43180ede0f62ba066ec
parent93f397c19641e0c1da7ab41cbd91c57b0a750f9a (diff)
config.mk: specify _XOPEN_SOURCE=700, fixes warnings on OpenBSD
-rw-r--r--config.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index 643b0b3..5a7da70 100644
--- a/config.mk
+++ b/config.mk
@@ -13,16 +13,16 @@ LIBS = -lc
# debug
CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic \
- -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE
+ -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
LDFLAGS = ${LIBS}
# optimized
-#CFLAGS = -O2 -std=c99 -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE
+#CFLAGS = -O2 -std=c99 -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
#LDFLAGS = -s ${LIBS}
# tcc
#CC = tcc
-#CFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE
+#CFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
#LDFLAGS = -s ${LIBS}
# compiler and linker