summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-12-25 17:48:46 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-12-25 17:48:46 +0100
commit55556b66bc57be0d82831b9cb353b79816216316 (patch)
tree3fa13809630cb5888d6d42267f52c24339ff2c69 /config.mk
parent543e74e64fcffd0181cb94f63a4a4029e44c7e4f (diff)
compat: add strlcpy, strlcat, for glibc
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index c019e51..e725151 100644
--- a/config.mk
+++ b/config.mk
@@ -26,5 +26,10 @@ LDFLAGS = ${LIBS}
# -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS}
#LDFLAGS = -static -s ${LIBS}
+# uncomment for compat
+CFLAGS += -DCOMPAT
+# uncomment if your libc doesn't support strlcat, strlcpy.
+EXTRAOBJ = strlcat.o strlcpy.o
+
# compiler and linker
#CC = cc