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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
--- a/src/BootControlBlocks.h
+++ b/src/BootControlBlocks.h
@@ -20,6 +20,8 @@
#ifndef BOOTCONTROLBLOCKS_H_
#define BOOTCONTROLBLOCKS_H_
+#include <stdint.h>
+
#define NCB_FINGERPRINT1 0x504d5453 //!< 'STMP'
#define NCB_FINGERPRINT2 0x2042434e //!< 'NCB<space>' - NAND Control Block
#define NCB_FINGERPRINT3 0x4e494252 //!< 'RBIN' - ROM Boot Image Block - N
--- a/src/bootstream.c
+++ b/src/bootstream.c
@@ -30,6 +30,7 @@
#include <time.h>
#include <alloca.h>
#include <stddef.h>
+#include <stdint.h>
#include "config.h"
#include "mtd.h"
--- a/src/dcp_bootstream_ioctl.h
+++ b/src/dcp_bootstream_ioctl.h
@@ -20,6 +20,8 @@
#ifndef DCP_BOOTSTREAM_IOCTL_H
#define DCP_BOOTSTREAM_IOCTL_H
+#include <stdint.h>
+
/* remember to have included the proper _IO definition
* file before hand.
* For user space it's <sys/ioctl.h>
--- a/src/mtd.c
+++ b/src/mtd.c
@@ -24,6 +24,7 @@
#define _GNU_SOURCE
#include <stdio.h>
+#include <stdint.h>
#include <malloc.h>
#include <unistd.h>
#include <stdlib.h>
--- a/src/mtd.h
+++ b/src/mtd.h
@@ -25,6 +25,8 @@
#ifndef MTD_H
#define MTD_H
+#include <stdint.h>
+
#include <mtd/mtd-user.h>
#include <endian.h>
--- a/src/ncb.c
+++ b/src/ncb.c
@@ -25,6 +25,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
+#include <stdint.h>
#include "mtd.h"
#include "config.h"
--- a/src/plat_boot_config.h
+++ b/src/plat_boot_config.h
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include "mtd.h"
--- a/src/rom_nand_hamming_code_ecc.c
+++ b/src/rom_nand_hamming_code_ecc.c
@@ -32,6 +32,7 @@
// Includes and external references
////////////////////////////////////////////////////////////////////////////////
+#include <stdint.h>
#include <string.h>
#include "rom_nand_hamming_code_ecc.h"
--- a/src/sha1.c
+++ b/src/sha1.c
@@ -23,6 +23,7 @@
* SUCH DAMAGE.
*/
+#include <stdint.h>
#include <string.h>
#include "sha.h"
|