mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
a479c79818
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>
25 lines
461 B
Diff
25 lines
461 B
Diff
--- a/src/mtd.c
|
|
+++ b/src/mtd.c
|
|
@@ -28,6 +28,7 @@
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
+#include <stddef.h>
|
|
#include <fcntl.h>
|
|
#include <ctype.h>
|
|
#include <errno.h>
|
|
--- a/src/mtd.h
|
|
+++ b/src/mtd.h
|
|
@@ -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"
|
|
#include "rom_nand_hamming_code_ecc.h"
|