diff options
Diffstat (limited to 'package/boot/kobs-ng/patches/001-compile.patch')
-rw-r--r-- | package/boot/kobs-ng/patches/001-compile.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/boot/kobs-ng/patches/001-compile.patch b/package/boot/kobs-ng/patches/001-compile.patch new file mode 100644 index 0000000000..67da93a324 --- /dev/null +++ b/package/boot/kobs-ng/patches/001-compile.patch @@ -0,0 +1,23 @@ +--- 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,10 @@ + #ifndef MTD_H + #define MTD_H + ++#define _GNU_SOURCE + #include <mtd/mtd-user.h> + #include <endian.h> ++#include <fcntl.h> + + #include "BootControlBlocks.h" + #include "rom_nand_hamming_code_ecc.h" |