b91c0509dabaf48dd06fd0805bd9240943b11a54
[openwrt/openwrt.git] / package / boot / kobs-ng / patches / 003-missing_include.patch
1 --- a/src/mtd.c
2 +++ b/src/mtd.c
3 @@ -28,6 +28,7 @@
4 #include <unistd.h>
5 #include <stdlib.h>
6 #include <string.h>
7 +#include <stddef.h>
8 #include <fcntl.h>
9 #include <ctype.h>
10 #include <errno.h>
11 --- a/src/mtd.h
12 +++ b/src/mtd.h
13 @@ -27,6 +27,7 @@
14
15 #include <mtd/mtd-user.h>
16 #include <endian.h>
17 +#include <fcntl.h>
18
19 #include "BootControlBlocks.h"
20 #include "rom_nand_hamming_code_ecc.h"