summaryrefslogtreecommitdiff
path: root/user/libreoffice/fix-execinfo.patch
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-08-18 20:08:04 -0400
committerMax Rees <maxcrees@me.com>2018-08-18 20:08:04 -0400
commitc5975fc819d7b79180a3627a87974da9d18685e3 (patch)
tree40a63300a89217613b6028a28a361dbef7d0eff0 /user/libreoffice/fix-execinfo.patch
parent92197441722ae423a6acc72e50f318536fe2aef4 (diff)
downloadpackages-c5975fc819d7b79180a3627a87974da9d18685e3.tar.gz
packages-c5975fc819d7b79180a3627a87974da9d18685e3.tar.bz2
packages-c5975fc819d7b79180a3627a87974da9d18685e3.tar.xz
packages-c5975fc819d7b79180a3627a87974da9d18685e3.zip
user/libreoffice: pull in, massive overhaul
Diffstat (limited to 'user/libreoffice/fix-execinfo.patch')
-rw-r--r--user/libreoffice/fix-execinfo.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/user/libreoffice/fix-execinfo.patch b/user/libreoffice/fix-execinfo.patch
new file mode 100644
index 000000000..4c3b35917
--- /dev/null
+++ b/user/libreoffice/fix-execinfo.patch
@@ -0,0 +1,39 @@
+diff --git a/sal/osl/unx/backtrace.h b/sal/osl/unx/backtrace.h
+index 5fafc1c..408c12c 100644
+--- a/sal/osl/unx/backtrace.h
++++ b/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>
+
+diff --git a/sal/osl/unx/signal.cxx b/sal/osl/unx/signal.cxx
+index f4c9a9c..da6d9cf 100644
+--- a/sal/osl/unx/signal.cxx
++++ b/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
+diff --git a/sal/osl/unx/backtrace.c b/sal/osl/unx/backtrace.c
+index 1d9a58b..fd648e4 100644
+--- a/sal/osl/unx/backtrace.c
++++ b/sal/osl/unx/backtrace.c
+@@ -282,7 +282,7 @@ void backtrace_symbols_fd( void **buffer, int size, int fd )
+ }
+ }
+
+-#elif !defined LINUX
++#elif !defined(__GLIBC__)
+
+ int backtrace( void **buffer, int max_frames )
+ {