diff options
Diffstat (limited to 'meta-oe/recipes-graphics/vk-gl-cts/files/0001-Fix-missing-include-cstdint-causing-build-failures.patch')
-rw-r--r-- | meta-oe/recipes-graphics/vk-gl-cts/files/0001-Fix-missing-include-cstdint-causing-build-failures.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-Fix-missing-include-cstdint-causing-build-failures.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-Fix-missing-include-cstdint-causing-build-failures.patch new file mode 100644 index 0000000000..44632bc74f --- /dev/null +++ b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-Fix-missing-include-cstdint-causing-build-failures.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 1d80b54aefd1f5f361990b1223c6fe308a8d3085 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ricardo Garcia <rgarcia@igalia.com> | ||
3 | Date: Mon, 21 Apr 2025 12:30:05 +0200 | ||
4 | Subject: [PATCH] Fix missing #include <cstdint> causing build failures | ||
5 | |||
6 | Tested on Fedora 42 with clang. | ||
7 | |||
8 | Upstream-Status: Submitted [https://github.com/google/amber/pull/1092] | ||
9 | |||
10 | Fixes: | ||
11 | http://errors.yoctoproject.org/Errors/Details/852849/ | ||
12 | |||
13 | In file included from TOPDIR/tmp/work/core2-64-oe-linux/vulkan-cts/1.4.1.0/git/external/amber/src/src/type.cc:15: | ||
14 | TOPDIR/tmp/work/core2-64-oe-linux/vulkan-cts/1.4.1.0/git/external/amber/src/src/type.h:56:39: error: 'uint32_t' has not been declared | ||
15 | 56 | static bool IsInt8(FormatMode mode, uint32_t num_bits) { | ||
16 | | ^~~~~~~~ | ||
17 | |||
18 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
19 | --- | ||
20 | src/tokenizer.h | 1 + | ||
21 | src/type.h | 1 + | ||
22 | 2 files changed, 2 insertions(+) | ||
23 | |||
24 | diff --git a/src/tokenizer.h b/src/tokenizer.h | ||
25 | index 53efec60..ea4f19df 100644 | ||
26 | --- a/src/tokenizer.h | ||
27 | +++ b/src/tokenizer.h | ||
28 | @@ -16,6 +16,7 @@ | ||
29 | #define SRC_TOKENIZER_H_ | ||
30 | |||
31 | #include <cstdlib> | ||
32 | +#include <cstdint> | ||
33 | #include <memory> | ||
34 | #include <string> | ||
35 | |||
36 | diff --git a/src/type.h b/src/type.h | ||
37 | index c63779ba..97720f29 100644 | ||
38 | --- a/src/type.h | ||
39 | +++ b/src/type.h | ||
40 | @@ -16,6 +16,7 @@ | ||
41 | #define SRC_TYPE_H_ | ||
42 | |||
43 | #include <cassert> | ||
44 | +#include <cstdint> | ||
45 | #include <memory> | ||
46 | #include <string> | ||
47 | #include <vector> | ||