From 25677f3ce5b212c81b830e02607401d0ad16a5b5 Mon Sep 17 00:00:00 2001 From: John Vogel Date: Fri, 12 Jul 2024 10:42:06 -0400 Subject: [PATCH 2/2] fix build with musl libc --- git-xdiff.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-xdiff.h b/git-xdiff.h index 4091d22..ab5ad47 100644 --- a/git-xdiff.h +++ b/git-xdiff.h @@ -61,6 +61,10 @@ inline int xdl_regexec_buf( #else # include +#ifndef REG_STARTEND +#define REG_STARTEND 00004 +#endif + # define xdl_regex_t regex_t # define xdl_regmatch_t regmatch_t -- 2.45.2