summaryrefslogtreecommitdiff
path: root/xdiff/0002-fix-build-with-musl-libc.patch
diff options
context:
space:
mode:
authorJohn Vogel <jvogel4@stny.rr.com>2024-07-13 04:45:00 -0400
committerJohn Vogel <jvogel4@stny.rr.com>2024-07-13 04:45:00 -0400
commit61c554300f0078b71e9487cddc8d1f144ecbc743 (patch)
tree949d0a20145cfef08d663cbcc64dcd1f00b35301 /xdiff/0002-fix-build-with-musl-libc.patch
parente641fea471c85d267a22ac9ee431d07e4a5c8701 (diff)
downloadmy-aports-61c554300f0078b71e9487cddc8d1f144ecbc743.tar.gz
local/xdiff: upgrade to 2.45.0
Revise cmake patch for simplified build. Fix up subpackages.
Diffstat (limited to 'xdiff/0002-fix-build-with-musl-libc.patch')
-rw-r--r--xdiff/0002-fix-build-with-musl-libc.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/xdiff/0002-fix-build-with-musl-libc.patch b/xdiff/0002-fix-build-with-musl-libc.patch
new file mode 100644
index 0000000..c4c7039
--- /dev/null
+++ b/xdiff/0002-fix-build-with-musl-libc.patch
@@ -0,0 +1,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
+