[U-Boot] [PATCH] include stdint.h where mtd/mtd-user.h is included

Gerhard Heift gerhard at heift.name
Fri Jan 15 11:56:18 CET 2016


Since linux 4.4 mtd/mtd-user.h does not include stdint.h any more, so it
has to be included explicitly.

See commit 137d36af4a53858b8db7ca83c8480247118b8bdf of the linux kernel.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=137d36af4a53858b8db7ca83c8480247118b8bdf

Signed-off-by: Gerhard Heift <Gerhard at Heift.Name>
---
 tools/env/fw_env.c               | 1 +
 tools/palmtreo680/flash_u-boot.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 39f7333..098c7c7 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -29,6 +29,7 @@
 # include <linux/mtd/mtd.h>
 #else
 # define  __user	/* nothing */
+# include <stdint.h>
 # include <mtd/mtd-user.h>
 #endif
 
diff --git a/tools/palmtreo680/flash_u-boot.c b/tools/palmtreo680/flash_u-boot.c
index 3d8296f..7a9b37d 100644
--- a/tools/palmtreo680/flash_u-boot.c
+++ b/tools/palmtreo680/flash_u-boot.c
@@ -28,6 +28,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <errno.h>
+#include <stdint.h>
 #include <mtd/mtd-user.h>
 #include "libmtd.h"
 
-- 
2.7.0.rc3



More information about the U-Boot mailing list