aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/httrack/compile_fix.patch
blob: ad7aebce119a7c861cf7683bac1ffe280dbdc026 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/src/httrack.c
+++ b/src/httrack.c
@@ -69,7 +69,8 @@
 #include <unistd.h>
 #endif
 #include <ctype.h>
-#ifdef __linux
+//#ifdef __linux
+#ifdef __GLIBC__
 #include <execinfo.h>
 #endif
 /* END specific definitions */
@@ -878,7 +879,8 @@
 #define FD_ERR 2
 
 static void print_backtrace(void) {
-#ifdef __linux
+//#ifdef __linux
+#ifdef __GLIBC__
   void *stack[256];
   const int size = backtrace(stack, sizeof(stack)/sizeof(stack[0]));
   if (size != 0) {