Fix build with gcc-13
authorTimo Röhling <roehling@debian.org>
Thu, 22 Jun 2023 08:56:38 +0000 (10:56 +0200)
committerTimo Röhling <roehling@debian.org>
Thu, 22 Jun 2023 08:56:38 +0000 (10:56 +0200)
Closes: #1037652
debian/patches/0019-Fix-build-with-gcc-13.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0019-Fix-build-with-gcc-13.patch b/debian/patches/0019-Fix-build-with-gcc-13.patch
new file mode 100644 (file)
index 0000000..3643fd0
--- /dev/null
@@ -0,0 +1,73 @@
+From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
+Date: Thu, 22 Jun 2023 10:54:04 +0200
+Subject: Fix build with gcc-13
+
+---
+ libs/filamat/src/eiff/BlobDictionary.h   | 1 +
+ libs/filamat/src/eiff/LineDictionary.cpp | 1 +
+ libs/utils/src/linux/Path.cpp            | 2 ++
+ tools/glslminifier/src/GlslMinify.h      | 1 +
+ tools/resgen/src/main.cpp                | 1 +
+ 5 files changed, 6 insertions(+)
+
+diff --git a/libs/filamat/src/eiff/BlobDictionary.h b/libs/filamat/src/eiff/BlobDictionary.h
+index 100f5b2..5284c9a 100644
+--- a/libs/filamat/src/eiff/BlobDictionary.h
++++ b/libs/filamat/src/eiff/BlobDictionary.h
+@@ -18,6 +18,7 @@
+ #define TNT_FILAMAT_BLOBDICTIONARY_H
+ #include <cassert>
++#include <cstdint>
+ #include <string>
+ #include <unordered_map>
+ #include <vector>
+diff --git a/libs/filamat/src/eiff/LineDictionary.cpp b/libs/filamat/src/eiff/LineDictionary.cpp
+index c5685a9..fba2a60 100644
+--- a/libs/filamat/src/eiff/LineDictionary.cpp
++++ b/libs/filamat/src/eiff/LineDictionary.cpp
+@@ -17,6 +17,7 @@
+ #include "LineDictionary.h"
+ #include <assert.h>
++#include <cstdint>
+ namespace filamat {
+diff --git a/libs/utils/src/linux/Path.cpp b/libs/utils/src/linux/Path.cpp
+index 5bbc8e7..9afeca1 100644
+--- a/libs/utils/src/linux/Path.cpp
++++ b/libs/utils/src/linux/Path.cpp
+@@ -20,6 +20,8 @@
+ #include <unistd.h>
+ #include <sys/stat.h>
++#include <cstdint>
++
+ namespace utils {
+ bool Path::mkdir() const {
+diff --git a/tools/glslminifier/src/GlslMinify.h b/tools/glslminifier/src/GlslMinify.h
+index c04e2fa..5da64ba 100644
+--- a/tools/glslminifier/src/GlslMinify.h
++++ b/tools/glslminifier/src/GlslMinify.h
+@@ -14,6 +14,7 @@
+  * limitations under the License.
+  */
++#include <cstdint>
+ #include <string>
+ #ifndef TNT_GLSLMINIFY_H
+diff --git a/tools/resgen/src/main.cpp b/tools/resgen/src/main.cpp
+index 083e7d6..d092623 100644
+--- a/tools/resgen/src/main.cpp
++++ b/tools/resgen/src/main.cpp
+@@ -19,6 +19,7 @@
+ #include <getopt/getopt.h>
+ #include <algorithm>
++#include <cstdint>
+ #include <fstream>
+ #include <iomanip>
+ #include <iostream>
index e9f0d4d0cbe1080991aeb167306319a6218ef6ee..2562e09e8147997b12de28ec71b0c4e134654359 100644 (file)
@@ -16,3 +16,4 @@
 0016-Workaround-for-armel-clang-compiler-bug.patch
 0017-Fix-TBuiltInResource-struct.patch
 0018-Fix-compatibility-with-spirv-cross-SDK-1.3.236.patch
+0019-Fix-build-with-gcc-13.patch