mirror of
https://github.com/optim-enterprises-bv/meta-openwrt.git
synced 2026-01-09 09:01:43 +00:00
procd: fix build error on new compilers
Signed-off-by: Petr Gotthard <petr.gotthard@advantech.cz>
This commit is contained in:
13
recipes-core/procd/procd/0200-fix-build.patch
Normal file
13
recipes-core/procd/procd/0200-fix-build.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/signal.c b/signal.c
|
||||
index 9974153..d7cc8d2 100644
|
||||
--- a/signal.c
|
||||
+++ b/signal.c
|
||||
@@ -33,7 +33,7 @@ static void do_reboot(void)
|
||||
static void signal_shutdown(int signal, siginfo_t *siginfo, void *data)
|
||||
{
|
||||
int event = 0;
|
||||
- char *msg = NULL;
|
||||
+ char *msg = "none";
|
||||
|
||||
#ifndef DISABLE_INIT
|
||||
switch(signal) {
|
||||
@@ -13,6 +13,7 @@ SECTION = "base"
|
||||
DEPENDS = "libubox ubus json-c"
|
||||
|
||||
SRC_URI = "git://git.openwrt.org/project/procd.git;branch=master \
|
||||
file://0200-fix-build.patch \
|
||||
file://00_preinit.conf \
|
||||
file://banner.failsafe \
|
||||
file://10_sysinfo \
|
||||
|
||||
Reference in New Issue
Block a user