Makefile: add workaround for distros still using older libgit2 versions

Noticed on Void Linux, Debian, etc.
This commit is contained in:
Hiltjo Posthuma 2022-07-26 23:50:40 +02:00
parent 2890451154
commit 174ea5d6fe

View File

@ -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