iAlways use the compat functions - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit bd854ac71fe7045b74accc57b5e1933b411033be /scm/stagit-gopher/commit/bd854ac71fe7045b74accc57b5e1933b411033be.gph bitreich.org 70 1parent 2809fd3795e8445f686547d08eef4631efc05030 /scm/stagit-gopher/commit/2809fd3795e8445f686547d08eef4631efc05030.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Wed, 6 Jan 2016 17:05:46 +0000 Err bitreich.org 70 i Err bitreich.org 70 iAlways use the compat functions Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M Makefile | 5 +++++ Err bitreich.org 70 i M compat.h | 2 -- Err bitreich.org 70 i M config.mk | 5 ----- Err bitreich.org 70 i Err bitreich.org 70 i3 files changed, 5 insertions(+), 7 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/Makefile b/Makefile /scm/stagit-gopher/file/Makefile.gph bitreich.org 70 i@@ -21,6 +21,11 @@ DOC = \ Err bitreich.org 70 i TODO Err bitreich.org 70 i HDR = compat.h Err bitreich.org 70 i Err bitreich.org 70 i+COMPATOBJ = \ Err bitreich.org 70 i+ reallocarray.o\ Err bitreich.org 70 i+ strlcat.o\ Err bitreich.org 70 i+ strlcpy.o Err bitreich.org 70 i+ Err bitreich.org 70 i OBJ = ${SRC:.c=.o} ${COMPATOBJ} Err bitreich.org 70 i Err bitreich.org 70 i all: $(BIN) Err bitreich.org 70 1diff --git a/compat.h b/compat.h /scm/stagit-gopher/file/compat.h.gph bitreich.org 70 i@@ -1,8 +1,6 @@ Err bitreich.org 70 i-#ifdef COMPAT Err bitreich.org 70 i #undef strlcat Err bitreich.org 70 i size_t strlcat(char *, const char *, size_t); Err bitreich.org 70 i #undef strlcpy Err bitreich.org 70 i size_t strlcpy(char *, const char *, size_t); Err bitreich.org 70 i #undef reallocarray Err bitreich.org 70 i void *reallocarray(void *, size_t, size_t); Err bitreich.org 70 i-#endif Err bitreich.org 70 1diff --git a/config.mk b/config.mk /scm/stagit-gopher/file/config.mk.gph bitreich.org 70 i@@ -26,10 +26,5 @@ LDFLAGS = ${LIBS} Err bitreich.org 70 i # -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS} Err bitreich.org 70 i #LDFLAGS = -static -s ${LIBS} Err bitreich.org 70 i Err bitreich.org 70 i-# uncomment for compat Err bitreich.org 70 i-CFLAGS += -DCOMPAT Err bitreich.org 70 i-# uncomment if your libc doesn't support reallocarray, strlcat, strlcpy. Err bitreich.org 70 i-COMPATOBJ = reallocarray.o strlcat.o strlcpy.o Err bitreich.org 70 i- Err bitreich.org 70 i # compiler and linker Err bitreich.org 70 i #CC = cc Err bitreich.org 70 .