aboutsummaryrefslogtreecommitdiffstats
path: root/main/sipsak/musl-fix-strcasestr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/sipsak/musl-fix-strcasestr.patch')
-rw-r--r--main/sipsak/musl-fix-strcasestr.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/sipsak/musl-fix-strcasestr.patch b/main/sipsak/musl-fix-strcasestr.patch
new file mode 100644
index 0000000000..b5f11cbbaf
--- /dev/null
+++ b/main/sipsak/musl-fix-strcasestr.patch
@@ -0,0 +1,16 @@
+This fixes segfault:
+http://bugs.alpinelinux.org/issues/3750
+
+diff --git a/sipsak.h b/sipsak.h
+index 8f5d283..f9b1b49 100644
+--- a/sipsak.h
++++ b/sipsak.h
+@@ -57,7 +57,7 @@
+ #endif
+
+ #ifdef HAVE_STRCASESTR
+-# define __USE_GNU
++# define _GNU_SOURCE
+ # define STRCASESTR(s1,s2) strcasestr(s1,s2)
+ #else
+ # define STRCASESTR(s1,s2) strstr(s1,s2)