aboutsummaryrefslogtreecommitdiffstats
path: root/main/sipsak/musl-fix-strcasestr.patch
blob: b5f11cbbaffc8aef6c8ffa1ed47ff0f486cd174c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)