libodfgen: fix build with gcc15 (#446154)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
diff --git a/src/OdfGenerator.cxx b/src/OdfGenerator.cxx
|
||||
index adf176b0a4..79de4dd2b7 100644
|
||||
--- a/src/OdfGenerator.cxx
|
||||
+++ b/src/OdfGenerator.cxx
|
||||
@@ -33,6 +33,7 @@
|
||||
#include <math.h>
|
||||
|
||||
#include <cctype>
|
||||
+#include <cstdint>
|
||||
#include <limits>
|
||||
#include <string>
|
||||
#include <stack>
|
||||
@@ -20,6 +20,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-Mj5JH5VsjKKrsSyZjjUGcJMKMjF7+WYrBhXdSzkiuDE=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with gcc15, based on:
|
||||
# https://sourceforge.net/p/libwpd/libodfgen/ci/4da0b148def5b40ee60d4cd79762c0f158d64cc7/
|
||||
./libodfgen-add-include-cstdint-gcc15.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
boost
|
||||
|
||||
Reference in New Issue
Block a user