diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-01-26 23:32:47 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-01-27 17:06:52 -0800 |
commit | 293f8baaddb93626fdcfc641f55c8a783e9aad46 (patch) | |
tree | f71c5dd2116f0bf278c8a68585dc90d99e1e75bc /meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch | |
parent | 5c455804aede17e0ea0cbb7ab55f8580f912e664 (diff) | |
download | meta-openembedded-293f8baaddb93626fdcfc641f55c8a783e9aad46.tar.gz |
waylandpp: Fix build with gcc-13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch')
-rw-r--r-- | meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch b/meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch new file mode 100644 index 0000000000..f2169c43c9 --- /dev/null +++ b/meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | From 5e3243b163aa5d50083b4036c21f84c1204f2023 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 26 Jan 2023 23:25:05 -0800 | ||
4 | Subject: [PATCH] include missing <cstdint> | ||
5 | |||
6 | gcc 13 moved some includes around and as a result <cstdint> is no longer transitively included [1]. Explicitly include it for uint{32,64}_t. | ||
7 | |||
8 | [1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/NilsBrause/waylandpp/pull/75] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | include/wayland-client.hpp | 1 + | ||
14 | scanner/scanner.cpp | 3 +++ | ||
15 | 2 files changed, 4 insertions(+) | ||
16 | |||
17 | diff --git a/include/wayland-client.hpp b/include/wayland-client.hpp | ||
18 | index a3f782b..4598a0e 100644 | ||
19 | --- a/include/wayland-client.hpp | ||
20 | +++ b/include/wayland-client.hpp | ||
21 | @@ -29,6 +29,7 @@ | ||
22 | /** \file */ | ||
23 | |||
24 | #include <atomic> | ||
25 | +#include <cstdint> | ||
26 | #include <functional> | ||
27 | #include <memory> | ||
28 | #include <string> | ||
29 | diff --git a/scanner/scanner.cpp b/scanner/scanner.cpp | ||
30 | index bebd71e..c25746a 100644 | ||
31 | --- a/scanner/scanner.cpp | ||
32 | +++ b/scanner/scanner.cpp | ||
33 | @@ -15,6 +15,7 @@ | ||
34 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
35 | */ | ||
36 | |||
37 | +#include <cstdint> | ||
38 | #include <fstream> | ||
39 | #include <iostream> | ||
40 | #include <list> | ||
41 | @@ -1106,6 +1107,7 @@ int main(int argc, char *argv[]) | ||
42 | wayland_hpp << "#pragma once" << std::endl | ||
43 | << std::endl | ||
44 | << "#include <array>" << std::endl | ||
45 | + << "#include <cstdint>" << std::endl | ||
46 | << "#include <functional>" << std::endl | ||
47 | << "#include <memory>" << std::endl | ||
48 | << "#include <string>" << std::endl | ||
49 | @@ -1125,6 +1127,7 @@ int main(int argc, char *argv[]) | ||
50 | wayland_server_hpp << "#pragma once" << std::endl | ||
51 | << std::endl | ||
52 | << "#include <array>" << std::endl | ||
53 | + << "#include <cstdint>" << std::endl | ||
54 | << "#include <functional>" << std::endl | ||
55 | << "#include <memory>" << std::endl | ||
56 | << "#include <string>" << std::endl | ||
57 | -- | ||
58 | 2.39.1 | ||
59 | |||