Browse Source

musl: fixed sysvinit package to build

master
Nagy Karoly Gabriel 10 years ago
parent
commit
67a1e5e60e
  1. 10
      base/musl/pkg/sysvinit/ttydefaults.patch
  2. 7
      base/sysvinit/rc.c

10
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 <utmp.h>
#include <ctype.h>
#include <stdarg.h>
+#include <sys/ttydefaults.h>
#include <sys/syslog.h>
#include <sys/time.h>

7
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 };

Loading…
Cancel
Save