summaryrefslogtreecommitdiff
path: root/legacy/libreoffice/fix-execinfo.patch
blob: cb82b7d84f52b1b3bd60a6c869ebfb4e9c7c07c3 (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
--- libreoffice-6.2.1.2/sal/osl/unx/backtrace.h
+++ libreoffice-6.2.1.2/sal/osl/unx/backtrace.h
@@ -20,7 +20,7 @@
 #ifndef INCLUDED_SAL_OSL_UNX_BACKTRACE_H
 #define INCLUDED_SAL_OSL_UNX_BACKTRACE_H
 
-#if defined (LINUX)
+#if defined (LINUX) && defined (__GLIBC__)
 
 #include <execinfo.h>
 
--- libreoffice-6.2.1.2/sal/osl/unx/signal.cxx
+++ libreoffice-6.2.1.2/sal/osl/unx/signal.cxx
@@ -35,7 +35,7 @@
 
 #endif /* MACOSX */
 
-#ifdef LINUX
+#if defined(LINUX) && defined(__GLIBC__)
 #include <execinfo.h>
 #include <link.h>
 #define INCLUDE_BACKTRACE
--- libreoffice-6.2.1.2/sal/osl/unx/backtrace.c
+++ libreoffice-6.2.1.2/sal/osl/unx/backtrace.c
@@ -279,7 +279,7 @@ void backtrace_symbols_fd( void **buffer
     }
 }
 
-#elif !defined LINUX
+#elif !defined(__GLIBC__)
 
 int backtrace( void **buffer, int max_frames )
 {