aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
diff options
context:
space:
mode:
authorSimon Wunderlich <sw@simonwunderlich.de>2017-11-09 18:06:49 +0100
committerMathias Kresin <dev@kresin.me>2017-11-16 22:56:54 +0100
commita479c79818cb9fe3913128f94340aebdfb732111 (patch)
tree7ebf09eb4deaa559adcd8298cfed3d89bff431d4 /package/boot
parentf922b0c191e5cb831b51968c0e88176f7484adef (diff)
downloadupstream-a479c79818cb9fe3913128f94340aebdfb732111.tar.gz
upstream-a479c79818cb9fe3913128f94340aebdfb732111.tar.bz2
upstream-a479c79818cb9fe3913128f94340aebdfb732111.zip
kobs-ng: add header for integer definitions
My compilation failed because of missing uint.* definitions: In file included from mtd.h:33:0, from bootstream.c:35: BootControlBlocks.h:58:2: error: unknown type name 'uint8_t' uint8_t m_u8DataSetup; ^ BootControlBlocks.h:59:2: error: unknown type name 'uint8_t' uint8_t m_u8DataHold; ^ BootControlBlocks.h:60:2: error: unknown type name 'uint8_t' uint8_t m_u8AddressSetup; ^ BootControlBlocks.h:61:2: error: unknown type name 'uint8_t' uint8_t m_u8DSAMPLE_TIME; Adding the header file fixes the problem. Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> [fold changes into 001-compile.patch] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/kobs-ng/patches/001-compile.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/boot/kobs-ng/patches/001-compile.patch b/package/boot/kobs-ng/patches/001-compile.patch
index 67da93a324..8648dc8b94 100644
--- a/package/boot/kobs-ng/patches/001-compile.patch
+++ b/package/boot/kobs-ng/patches/001-compile.patch
@@ -10,13 +10,14 @@
#include <errno.h>
--- a/src/mtd.h
+++ b/src/mtd.h
-@@ -25,8 +25,10 @@
+@@ -25,8 +25,11 @@
#ifndef MTD_H
#define MTD_H
+#define _GNU_SOURCE
#include <mtd/mtd-user.h>
#include <endian.h>
++#include <stdint.h>
+#include <fcntl.h>
#include "BootControlBlocks.h"