blob: 1c166842412e997a03645620484d58e61adc1b7b (
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
46
47
48
49
|
From 26d488b38a0357468b8657f283ad24a433e30beb Mon Sep 17 00:00:00 2001
From: alefnode <adrian.campos@teachelp.com>
Date: Thu, 4 May 2023 09:15:29 +0200
Subject: [PATCH] Fix to << uint32_t has not been declared >>
Link: https://gitlab.com/sdm845-mainline/qbootctl/-/commit/df63d7c21c19a3e3afb41d029b97b9d068880484
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
bootctrl_impl.cpp | 1 +
gpt-utils.h | 1 +
qbootctl.cpp | 1 +
3 files changed, 3 insertions(+)
diff --git a/bootctrl_impl.cpp b/bootctrl_impl.cpp
index 7c1a082..59fcc7d 100644
--- a/bootctrl_impl.cpp
+++ b/bootctrl_impl.cpp
@@ -30,6 +30,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
+#include <stdint.h>
#include "utils.h"
#include "gpt-utils.h"
diff --git a/gpt-utils.h b/gpt-utils.h
index 319f3fe..f153012 100644
--- a/gpt-utils.h
+++ b/gpt-utils.h
@@ -37,6 +37,7 @@ extern "C" {
#endif
#include <unistd.h>
#include <stdlib.h>
+#include <stdint.h>
#define GPT_SIGNATURE "EFI PART"
#define HEADER_SIZE_OFFSET 12
diff --git a/qbootctl.cpp b/qbootctl.cpp
index 0225f0f..3559e29 100644
--- a/qbootctl.cpp
+++ b/qbootctl.cpp
@@ -25,6 +25,7 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
+#include <cstdint>
#include "bootctrl.h"
|