libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / desktop / libreoffice / patches / 03-alloca.patch
blob99f65e3fac0167bb79a708957630e680f3f65f5b
1 --- libreoffice-6.4.2.2/cppuhelper/source/tdmgr.cxx.1 2020-03-15 10:03:42.203329269 +0000
2 +++ libreoffice-6.4.2.2/cppuhelper/source/tdmgr.cxx 2020-03-15 10:04:42.704913414 +0000
3 @@ -20,6 +20,9 @@
5 #include <sal/config.h>
6 #include <sal/log.hxx>
7 +#ifdef __sun__
8 +#include <alloca.h>
9 +#endif
11 #include <vector>
13 --- libreoffice-6.4.2.2/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx.1 2020-03-16 07:58:41.300604523 +0000
14 +++ libreoffice-6.4.2.2/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx 2020-03-16 07:59:13.543460399 +0000
15 @@ -20,6 +20,10 @@
17 #include "Proxy.hxx"
19 +#ifdef __sun__
20 +#include <alloca.h>
21 +#endif
23 #include <sal/log.hxx>
24 #include <uno/dispatcher.h>
25 #include <typelib/typedescription.hxx>
26 --- libreoffice-7.2.5.2/vcl/source/helper/strhelper.cxx.orig Wed Feb 9 11:40:19 2022
27 +++ libreoffice-7.2.5.2/vcl/source/helper/strhelper.cxx Wed Feb 9 11:41:29 2022
28 @@ -16,6 +16,9 @@
29 * except in compliance with the License. You may obtain a copy of
30 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
32 +#ifdef __sun__
33 +#include <alloca.h>
34 +#endif
36 #include <strhelper.hxx>
38 --- libreoffice-6.4.2.2/vcl/unx/generic/app/i18n_cb.cxx.1 2020-03-18 07:29:10.139990266 +0000
39 +++ libreoffice-6.4.2.2/vcl/unx/generic/app/i18n_cb.cxx 2020-03-18 07:29:53.640901720 +0000
40 @@ -19,6 +19,9 @@
42 #include <stdio.h>
43 #include <string.h>
44 +#ifdef __sun__
45 +#include <alloca.h>
46 +#endif
48 #include <osl/thread.h>
50 --- libreoffice-6.4.2.2/vcl/unx/generic/app/wmadaptor.cxx.1 2020-04-06 15:08:28.061370256 +0000
51 +++ libreoffice-6.4.2.2/vcl/unx/generic/app/wmadaptor.cxx 2020-04-06 15:08:58.972919890 +0000
52 @@ -36,6 +36,10 @@
53 #include <X11/Xutil.h>
54 #include <X11/Xatom.h>
56 +#ifdef __sun__
57 +#include <alloca.h>
58 +#endif
60 namespace vcl_sal {
62 class NetWMAdaptor : public WMAdaptor
63 --- libreoffice-6.4.2.2/vcl/unx/generic/dtrans/X11_selection.cxx.1 2020-04-06 15:36:31.847536995 +0000
64 +++ libreoffice-6.4.2.2/vcl/unx/generic/dtrans/X11_selection.cxx 2020-04-06 15:37:04.488360772 +0000
65 @@ -34,6 +34,10 @@
66 #include <X11/Xatom.h>
67 #include <X11/keysym.h>
69 +#ifdef __sun__
70 +#include <alloca.h>
71 +#endif
73 #include <poll.h>
75 #include <sal/macros.h>
76 --- libreoffice-6.4.2.2/vcl/unx/generic/window/salframe.cxx.1 2020-04-06 17:34:22.433987425 +0000
77 +++ libreoffice-6.4.2.2/vcl/unx/generic/window/salframe.cxx 2020-04-06 17:34:49.177033362 +0000
78 @@ -21,6 +21,10 @@
79 #include <stdio.h>
80 #include <stdlib.h>
82 +#ifdef __sun__
83 +#include <alloca.h>
84 +#endif
86 #include <tools/debug.hxx>
88 #include <vcl/event.hxx>
89 --- libreoffice-7.3.2.1/i18npool/source/transliteration/transliteration_body.cxx.old 2022-03-15 00:37:36.121606584 +0000
90 +++ libreoffice-7.3.2.1/i18npool/source/transliteration/transliteration_body.cxx 2022-03-15 00:37:53.289037132 +0000
91 @@ -36,6 +36,10 @@
92 #include <memory>
93 #include <numeric>
95 +#ifdef __sun__
96 +#include <alloca.h>
97 +#endif
99 using namespace ::com::sun::star::uno;
100 using namespace ::com::sun::star::i18n;
101 using namespace ::com::sun::star::lang;
102 --- libreoffice-7.4.2.3/sal/rtl/strtmpl.hxx.old 2022-11-06 23:45:11.068322984 +0000
103 +++ libreoffice-7.4.2.3/sal/rtl/strtmpl.hxx 2022-11-06 23:46:13.110249540 +0000
104 @@ -40,6 +40,10 @@
105 #include <rtl/string.h>
106 #include <rtl/ustring.h>
108 +#ifdef __sun__
109 +#include <alloca.h>
110 +#endif
112 #include <dragonbox/dragonbox.h>
114 void internRelease(rtl_uString*);
115 --- libreoffice-7.5.1.1/basegfx/source/matrix/b2dhommatrix.cxx.old 2023-02-20 22:13:42.558423559 -0500
116 +++ libreoffice-7.5.1.1/basegfx/source/matrix/b2dhommatrix.cxx 2023-02-20 22:12:58.335447142 -0500
117 @@ -24,6 +24,10 @@
118 #include <basegfx/matrix/b2dhommatrixtools.hxx>
119 #include <memory>
121 +#ifdef __sun__
122 +#include <alloca.h>
123 +#endif
125 namespace basegfx
127 typedef ::basegfx::internal::ImplHomMatrixTemplate< 3 > Impl2DHomMatrix_Base;
128 --- core-aea53c0ed1527ed1f8233972a27128e14d645e8f/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx.old 2023-11-11 11:38:42.877498857 -0500
129 +++ core-aea53c0ed1527ed1f8233972a27128e14d645e8f/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx 2023-11-11 11:40:30.758415889 -0500
130 @@ -34,6 +34,10 @@
131 #include <types.hxx>
132 #include <vtablefactory.hxx>
134 +#ifdef __sun__
135 +#include <alloca.h>
136 +#endif
138 #include "abi.hxx"
139 #include "call.hxx"
140 #include "rtti.hxx"
141 --- core-9d74fdd4650abc8e7d94abd58539fc7cec112549/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx.old 2024-02-19 19:24:37.961578509 -0500
142 +++ core-9d74fdd4650abc8e7d94abd58539fc7cec112549/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx 2024-02-19 19:28:07.969396398 -0500
143 @@ -33,6 +33,9 @@
144 #include "abi.hxx"
145 #include "callvirtualmethod.hxx"
146 #include "share.hxx"
147 +#ifdef __sun__
148 +#include <alloca.h>
149 +#endif
151 using namespace ::com::sun::star::uno;
153 --- core-9d74fdd4650abc8e7d94abd58539fc7cec112549/bridges/source/jni_uno/jni_uno2java.cxx.old 2024-02-19 19:31:21.806270059 -0500
154 +++ core-9d74fdd4650abc8e7d94abd58539fc7cec112549/bridges/source/jni_uno/jni_uno2java.cxx 2024-02-19 19:31:59.181792851 -0500
155 @@ -29,6 +29,9 @@
157 #include <rtl/ustrbuf.hxx>
158 #include <utility>
159 +#ifdef __sun__
160 +#include <alloca.h>
161 +#endif
163 #include "jni_bridge.h"
164 #include "jni_helper.h"
165 --- core-9d74fdd4650abc8e7d94abd58539fc7cec112549/bridges/source/jni_uno/jni_java2uno.cxx.old 2024-02-19 19:32:41.800939198 -0500
166 +++ core-9d74fdd4650abc8e7d94abd58539fc7cec112549/bridges/source/jni_uno/jni_java2uno.cxx 2024-02-19 19:32:57.630705756 -0500
167 @@ -22,6 +22,9 @@
169 #include <algorithm>
170 #include <cassert>
171 +#ifdef __sun__
172 +#include <alloca.h>
173 +#endif
175 #include "jni_bridge.h"
176 #include "jni_helper.h"