summaryrefslogtreecommitdiff
path: root/xdiff/0002-fix-build-with-musl-libc.patch
blob: c4c7039e2898678f15ec21dd041457959f8db3e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 25677f3ce5b212c81b830e02607401d0ad16a5b5 Mon Sep 17 00:00:00 2001
From: John Vogel <jvogel4@stny.rr.com>
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 <regex.h>
 
+#ifndef REG_STARTEND
+#define REG_STARTEND 00004
+#endif
+
 # define xdl_regex_t regex_t
 # define xdl_regmatch_t regmatch_t
 
-- 
2.45.2