aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/image/lzma-loader/src/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/image/lzma-loader/src/loader.c')
-rw-r--r--target/linux/ramips/image/lzma-loader/src/loader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ramips/image/lzma-loader/src/loader.c b/target/linux/ramips/image/lzma-loader/src/loader.c
index 1d42bfa2f7..c73b60b351 100644
--- a/target/linux/ramips/image/lzma-loader/src/loader.c
+++ b/target/linux/ramips/image/lzma-loader/src/loader.c
@@ -21,6 +21,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <sys/types.h>
#include "config.h"
#include "cache.h"
@@ -73,9 +74,10 @@ static unsigned long lzma_outsize;
static unsigned long kernel_la;
#ifdef CONFIG_KERNEL_CMDLINE
-#define kernel_argc 1
+#define kernel_argc 2
static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE;
static const char *kernel_argv[] = {
+ NULL,
kernel_cmdline,
NULL,
};