ctucx.git: stagit

ctucx' stagit fork

commit bf54e294a39ac4a2e2f4f19975d3eef2e2fa52fe
parent ff082027e5a3caa859e5fb8c617f8ef471828ce1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 26 Jul 2022 23:50:40 +0200

Makefile: add workaround for distros still using older libgit2 versions

Noticed on Void Linux, Debian, etc.
1 file changed, 4 insertions(+), 0 deletions(-)
M
Makefile
|
4
++++
diff --git a/Makefile b/Makefile
@@ -16,6 +16,10 @@ STAGIT_CFLAGS = ${LIB_INC} ${CFLAGS}
 STAGIT_LDFLAGS = ${LIB_LIB} ${LDFLAGS}
 STAGIT_CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE
 
+# Uncomment to enable workaround for older libgit2 which don't support this
+# option. This workaround will be removed in the future *pinky promise*.
+#STAGIT_CFLAGS += -DGIT_OPT_SET_OWNER_VALIDATION=-1
+
 SRC = \
 	stagit.c\
 	stagit-index.c