aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-01 12:38:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-11-01 12:38:38 +0000
commita399fcb5c70d138c62c39bd201d5a359f40f48d0 (patch)
tree7aceddc69fee0b25d3a1cecb5ca127c6a02c8705 /package
parent697ae93f490df5d27b1b8cf9126411ebf9c14578 (diff)
downloadmaster-187ad058-a399fcb5c70d138c62c39bd201d5a359f40f48d0.tar.gz
master-187ad058-a399fcb5c70d138c62c39bd201d5a359f40f48d0.tar.bz2
master-187ad058-a399fcb5c70d138c62c39bd201d5a359f40f48d0.zip
kobs-ng: fix compile errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47332 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/boot/kobs-ng/patches/003-missing_include.patch20
-rw-r--r--package/boot/kobs-ng/patches/004-gnu_source.patch10
2 files changed, 30 insertions, 0 deletions
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 0000000000..b91c0509da
--- /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 <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
+@@ -27,6 +27,7 @@
+
+ #include <mtd/mtd-user.h>
+ #include <endian.h>
++#include <fcntl.h>
+
+ #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 0000000000..3e94c92e1c
--- /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 <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>