aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/kobs-ng/patches/001-compile.patch
blob: 8648dc8b940f50a145ba77a3c37fd307f42861cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- 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"