From 174ea5d6fee240ec5df3afabfea1c5ce1319e3ea Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 26 Jul 2022 23:50:40 +0200 Subject: [PATCH] Makefile: add workaround for distros still using older libgit2 versions Noticed on Void Linux, Debian, etc. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 0c03f81..e28083e 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,10 @@ STAGIT_CFLAGS = ${LIBGIT_INC} ${CFLAGS} STAGIT_LDFLAGS = ${LIBGIT_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 -- 2.30.2