diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-04 04:00:13 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-04 04:00:13 +0000 |
commit | 686478aa70361c355e5d9b528af40f2b863e69b4 (patch) | |
tree | d468b32b7c3e708ea5b97e44edcbb738bfc51dbf /app-office/libreoffice/files/libreoffice-7.5.6.2-gcc-14.patch | |
parent | 9d352bec7c48de973d3fa345f92f733fe075f19a (diff) |
gentoo auto-resync : 04:11:2023 - 04:00:13
Diffstat (limited to 'app-office/libreoffice/files/libreoffice-7.5.6.2-gcc-14.patch')
-rw-r--r-- | app-office/libreoffice/files/libreoffice-7.5.6.2-gcc-14.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/app-office/libreoffice/files/libreoffice-7.5.6.2-gcc-14.patch b/app-office/libreoffice/files/libreoffice-7.5.6.2-gcc-14.patch new file mode 100644 index 000000000000..1d73ea97d807 --- /dev/null +++ b/app-office/libreoffice/files/libreoffice-7.5.6.2-gcc-14.patch @@ -0,0 +1,64 @@ +From db98a3f1b1a703ea8e1284b8815eea2274abb2db Mon Sep 17 00:00:00 2001 +From: Martin Jambor <mjambor@suse.cz> +Date: Wed, 7 Jun 2023 18:11:45 +0200 +Subject: [PATCH] Add cstdlib include necessary to build with gcc14 libstdc++ + (tdf#155715) + +Without explicitely including <cstdlib>, compiling some files +including store/source/storbase.hxx (such as store/source/storpage.cxx +which includes it through store/source/storpage.hxx) will result in +errors: + + error: ‘malloc’ is not a member of ‘std’ + +and + + error: ‘free’ is not a member of ‘std’ + +This patch simply adds the necessary include. + +Change-Id: I3d1fa2a17c5ae9d512f1de9d434dac3d82fc353f +Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152712 +Tested-by: Jenkins +Reviewed-by: Stephan Bergmann <sbergman@redhat.com> +--- + store/source/storbase.hxx | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx +index feac0db962272..207cbf40a8d3c 100644 +--- a/store/source/storbase.hxx ++++ b/store/source/storbase.hxx +@@ -32,6 +32,7 @@ + + #include <store/types.h> + ++#include <cstdlib> + #include <memory> + #include <utility> + +From 436c879b355f2cde763b0386df92e0d3708180a7 Mon Sep 17 00:00:00 2001 +From: Stephan Bergmann <sbergman@redhat.com> +Date: Mon, 5 Jun 2023 13:52:01 +0200 +Subject: [PATCH] Missing include (for std::find_if) + +Change-Id: I91d70d72ea6cb18ed4fde2f3b3a3d037668767e5 +Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152615 +Tested-by: Jenkins +Reviewed-by: Stephan Bergmann <sbergman@redhat.com> +--- + libreofficekit/qa/gtktiledviewer/gtv-main-toolbar.cxx | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libreofficekit/qa/gtktiledviewer/gtv-main-toolbar.cxx b/libreofficekit/qa/gtktiledviewer/gtv-main-toolbar.cxx +index a89b8fc7fc72e..7127581856fce 100644 +--- a/libreofficekit/qa/gtktiledviewer/gtv-main-toolbar.cxx ++++ b/libreofficekit/qa/gtktiledviewer/gtv-main-toolbar.cxx +@@ -16,6 +16,7 @@ + + #include <LibreOfficeKit/LibreOfficeKitGtk.h> + ++#include <algorithm> + #include <fstream> + #include <map> + #include <memory> |