Author: nbd
Date: 2015-11-01 13:38:38 +0100 (Sun, 01 Nov 2015)
New Revision: 47332

Added:
   trunk/package/boot/kobs-ng/patches/003-missing_include.patch
   trunk/package/boot/kobs-ng/patches/004-gnu_source.patch
Log:
kobs-ng: fix compile errors

Signed-off-by: Felix Fietkau <[email protected]>

Added: trunk/package/boot/kobs-ng/patches/003-missing_include.patch
===================================================================
--- trunk/package/boot/kobs-ng/patches/003-missing_include.patch                
                (rev 0)
+++ trunk/package/boot/kobs-ng/patches/003-missing_include.patch        
2015-11-01 12:38:38 UTC (rev 47332)
@@ -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"

Added: trunk/package/boot/kobs-ng/patches/004-gnu_source.patch
===================================================================
--- trunk/package/boot/kobs-ng/patches/004-gnu_source.patch                     
        (rev 0)
+++ trunk/package/boot/kobs-ng/patches/004-gnu_source.patch     2015-11-01 
12:38:38 UTC (rev 47332)
@@ -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>
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to