From cce2f78660bb76bd9d2e043cc30dac5da5100bd9 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 12 Dec 2014 14:57:53 +0100 Subject: config.mk: specify _XOPEN_SOURCE=700, fixes warnings on OpenBSD --- config.mk | 6 +++--- 1 file 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 -- cgit v1.2.3