From 67a1e5e60efcdbc42b80c630d78472f47370f924 Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Sun, 25 Jan 2015 23:45:25 +0100 Subject: [PATCH] musl: fixed sysvinit package to build --- base/musl/pkg/sysvinit/ttydefaults.patch | 10 ++++++++++ base/sysvinit/rc.c | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 base/musl/pkg/sysvinit/ttydefaults.patch diff --git a/base/musl/pkg/sysvinit/ttydefaults.patch b/base/musl/pkg/sysvinit/ttydefaults.patch new file mode 100644 index 000000000..3c9dd18f4 --- /dev/null +++ b/base/musl/pkg/sysvinit/ttydefaults.patch @@ -0,0 +1,10 @@ +--- ./src/init.c.orig 2015-01-25 22:33:52.743426372 +0100 ++++ ./src/init.c 2015-01-25 22:50:05.813855605 +0100 +@@ -49,6 +49,7 @@ + #include + #include + #include ++#include + #include + #include + diff --git a/base/sysvinit/rc.c b/base/sysvinit/rc.c index a1a6eecc3..4b566a7c8 100644 --- a/base/sysvinit/rc.c +++ b/base/sysvinit/rc.c @@ -41,6 +41,13 @@ char * clean_env[] = { NULL }; +#ifndef __SIGRTMIN +#define __SIGRTMIN 32 +#endif +#ifndef __SIGRTMAX +#define __SIGRTMAX (NSIG-1) +#endif + /* See bits/resource.h and asm/resource.h */ struct rlimit rlim_cpu = { RLIM_INFINITY, RLIM_INFINITY }; struct rlimit rlim_fsize = { RLIM_INFINITY, RLIM_INFINITY };