diff options
author | sin <sin@2f30.org> | 2016-01-06 17:05:46 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2016-01-06 17:07:47 +0000 |
commit | bd854ac71fe7045b74accc57b5e1933b411033be (patch) | |
tree | bef1fa69b1beb9228cb59e9e4dd6c88d1faab3e2 | |
parent | 2809fd3795e8445f686547d08eef4631efc05030 (diff) |
Always use the compat functions
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | compat.h | 2 | ||||
-rw-r--r-- | config.mk | 5 |
3 files changed, 5 insertions, 7 deletions
@@ -21,6 +21,11 @@ DOC = \ TODO HDR = compat.h +COMPATOBJ = \ + reallocarray.o\ + strlcat.o\ + strlcpy.o + OBJ = ${SRC:.c=.o} ${COMPATOBJ} all: $(BIN) @@ -1,8 +1,6 @@ -#ifdef COMPAT #undef strlcat size_t strlcat(char *, const char *, size_t); #undef strlcpy size_t strlcpy(char *, const char *, size_t); #undef reallocarray void *reallocarray(void *, size_t, size_t); -#endif @@ -26,10 +26,5 @@ 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 reallocarray, strlcat, strlcpy. -COMPATOBJ = reallocarray.o strlcat.o strlcpy.o - # compiler and linker #CC = cc |