aboutsummaryrefslogblamecommitdiffstats
path: root/main/sipsak/musl-fix-strcasestr.patch
blob: 987f4c4ebb967dd244f8ffc7b04377d751dffe69 (plain) (tree)
1
2
3
4
5
6
7


                                       
                                        
                             

                  








                                             
This fixes segfault:
http://bugs.alpinelinux.org/issues/3750

diff --git a/src/sipsak.h b/src/sipsak.h
index 8f5d283..f9b1b49 100644
--- a/src/sipsak.h
+++ b/src/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)