aboutsummaryrefslogtreecommitdiffstats
path: root/main/dahdi-tools/fix-musl.patch
blob: 01a0a302bf1e4f246e8c0810999e8e49b8c50356 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
diff -ru dahdi-tools-2.11.1.orig/xpp/hexfile.h dahdi-tools-2.11.1/xpp/hexfile.h
--- dahdi-tools-2.11.1.orig/xpp/hexfile.h	2016-03-02 00:04:19.000000000 +0200
+++ dahdi-tools-2.11.1/xpp/hexfile.h	2017-05-29 09:30:50.034438806 +0300
@@ -26,6 +26,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdint.h>
+#include <sys/cdefs.h>
 #include <sys/param.h>
 #include <syslog.h>
 #define	PACKED	__attribute__((packed))
diff -ru dahdi-tools-2.11.1.orig/xpp/xtalk/debug.c dahdi-tools-2.11.1/xpp/xtalk/debug.c
--- dahdi-tools-2.11.1.orig/xpp/xtalk/debug.c	2016-03-02 00:04:19.000000000 +0200
+++ dahdi-tools-2.11.1/xpp/xtalk/debug.c	2017-05-29 09:30:02.193881232 +0300
@@ -26,7 +26,6 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include <syslog.h>
-#include <execinfo.h>
 #include <xtalk/debug.h>
 #include <autoconfig.h>
 
@@ -61,6 +60,7 @@
 /* from glibc info(1) */
 void print_backtrace(FILE *fp)
 {
+#if 0
 	void	*array[10];
 	size_t	size;
 	char	**strings;
@@ -71,4 +71,5 @@
 	for (i = 0; i < size; i++)
 		fprintf(fp, "%s\n", strings[i]);
 	free(strings);
+#endif
 }