aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-security/usbguard/usbguard/0001-include-missing-cstdint.patch
blob: 5cbe64091cb49ba14a0b71f3103d21ab43d7d530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 1da0cfbb9ae978822d961d8b22d8d5125c11247a Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 26 Jan 2023 23:46:56 -0800
Subject: [PATCH] include missing <cstdint>

gcc 13 moved some includes around and as a result <cstdint> is no
longer transitively included [1]. Explicitly include it for
uint8_t.

[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

Upstream-Status: Submitted [https://github.com/USBGuard/usbguard/pull/583]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/Library/Base64.cpp | 1 -
 src/Library/Base64.hpp | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Library/Base64.cpp b/src/Library/Base64.cpp
index ddb28dc..0246a13 100644
--- a/src/Library/Base64.cpp
+++ b/src/Library/Base64.cpp
@@ -22,7 +22,6 @@
 
 #include "Base64.hpp"
 #include <stdexcept>
-#include <cstdint>
 
 namespace usbguard
 {
diff --git a/src/Library/Base64.hpp b/src/Library/Base64.hpp
index 0947f21..e0c745c 100644
--- a/src/Library/Base64.hpp
+++ b/src/Library/Base64.hpp
@@ -23,6 +23,7 @@
 #endif
 
 #include <string>
+#include <cstdint>
 #include <cstddef>
 
 namespace usbguard
-- 
2.39.1