store/source/storbase.hxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 367c6ab1660110a872b99c0db4aa7bc56fc8fdb0 Author: Martin Jambor <mjam...@suse.cz> AuthorDate: Wed Jun 7 18:11:45 2023 +0200 Commit: Thorsten Behrens <thorsten.behr...@allotropia.de> CommitDate: Sat Feb 24 22:10:50 2024 +0100
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 <sberg...@redhat.com> diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx index feac0db96227..207cbf40a8d3 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>