From 97abe48112b036f9f4cde368c4ecf81cf9565c4c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 1 Nov 2015 12:38:38 +0000 Subject: [PATCH] kobs-ng: fix compile errors Signed-off-by: Felix Fietkau SVN-Revision: 47332 --- .../kobs-ng/patches/003-missing_include.patch | 20 +++++++++++++++++++ .../boot/kobs-ng/patches/004-gnu_source.patch | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 package/boot/kobs-ng/patches/003-missing_include.patch create mode 100644 package/boot/kobs-ng/patches/004-gnu_source.patch diff --git a/package/boot/kobs-ng/patches/003-missing_include.patch b/package/boot/kobs-ng/patches/003-missing_include.patch new file mode 100644 index 00000000000..b91c0509dab --- /dev/null +++ b/package/boot/kobs-ng/patches/003-missing_include.patch @@ -0,0 +1,20 @@ +--- a/src/mtd.c ++++ b/src/mtd.c +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- a/src/mtd.h ++++ b/src/mtd.h +@@ -27,6 +27,7 @@ + + #include + #include ++#include + + #include "BootControlBlocks.h" + #include "rom_nand_hamming_code_ecc.h" diff --git a/package/boot/kobs-ng/patches/004-gnu_source.patch b/package/boot/kobs-ng/patches/004-gnu_source.patch new file mode 100644 index 00000000000..3e94c92e1cf --- /dev/null +++ b/package/boot/kobs-ng/patches/004-gnu_source.patch @@ -0,0 +1,10 @@ +--- a/src/plat_boot_config.c ++++ b/src/plat_boot_config.c +@@ -18,6 +18,7 @@ + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + ++#define _GNU_SOURCE + #include + #include + #include