From 85d5f24916e1613b22b5432850bf7d36818620fb Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 17 Jul 2012 04:12:56 +0200 Subject: [PATCH] busybox: add upstream patch to support (e)glibc-2.16 Signed-off-by: Stephan Raue --- .../busybox-1.20.2-include_resource.h.patch | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 packages/sysutils/busybox/patches/busybox-1.20.2-include_resource.h.patch diff --git a/packages/sysutils/busybox/patches/busybox-1.20.2-include_resource.h.patch b/packages/sysutils/busybox/patches/busybox-1.20.2-include_resource.h.patch new file mode 100644 index 0000000000..efa75d1a7d --- /dev/null +++ b/packages/sysutils/busybox/patches/busybox-1.20.2-include_resource.h.patch @@ -0,0 +1,77 @@ +diff -Naur busybox-1.20.2/loginutils/passwd.c busybox-1.20.2.patch/loginutils/passwd.c +--- busybox-1.20.2/loginutils/passwd.c 2012-06-26 15:35:45.000000000 +0200 ++++ busybox-1.20.2.patch/loginutils/passwd.c 2012-07-16 17:08:07.382745761 +0200 +@@ -15,6 +15,7 @@ + + #include "libbb.h" + #include ++#include /* setrlimit */ + + static void nuke_str(char *str) + { +diff -Naur busybox-1.20.2/miscutils/time.c busybox-1.20.2.patch/miscutils/time.c +--- busybox-1.20.2/miscutils/time.c 2012-06-26 15:35:45.000000000 +0200 ++++ busybox-1.20.2.patch/miscutils/time.c 2012-07-16 17:08:07.383745781 +0200 +@@ -16,6 +16,7 @@ + //usage: "\n -v Verbose" + + #include "libbb.h" ++#include /* getrusage */ + + /* Information on the resources used by a child process. */ + typedef struct { +diff -Naur busybox-1.20.2/networking/inetd.c busybox-1.20.2.patch/networking/inetd.c +--- busybox-1.20.2/networking/inetd.c 2012-07-02 16:08:25.000000000 +0200 ++++ busybox-1.20.2.patch/networking/inetd.c 2012-07-16 17:08:39.368394206 +0200 +@@ -165,6 +165,7 @@ + //usage: "\n (default: 0 - disabled)" + + #include ++#include /* setrlimit */ + #include + + #include "libbb.h" +diff -Naur busybox-1.20.2/networking/ntpd.c busybox-1.20.2.patch/networking/ntpd.c +--- busybox-1.20.2/networking/ntpd.c 2012-07-02 16:08:25.000000000 +0200 ++++ busybox-1.20.2.patch/networking/ntpd.c 2012-07-16 17:08:07.386745839 +0200 +@@ -46,6 +46,7 @@ + #include "libbb.h" + #include + #include /* For IPTOS_LOWDELAY definition */ ++#include /* setpriority */ + #include + #ifndef IPTOS_LOWDELAY + # define IPTOS_LOWDELAY 0x10 +diff -Naur busybox-1.20.2/networking/ntpd_simple.c busybox-1.20.2.patch/networking/ntpd_simple.c +--- busybox-1.20.2/networking/ntpd_simple.c 2012-06-26 15:35:45.000000000 +0200 ++++ busybox-1.20.2.patch/networking/ntpd_simple.c 2012-07-16 17:08:07.386745839 +0200 +@@ -7,6 +7,7 @@ + */ + #include "libbb.h" + #include /* For IPTOS_LOWDELAY definition */ ++#include /* setpriority */ + #ifndef IPTOS_LOWDELAY + # define IPTOS_LOWDELAY 0x10 + #endif +diff -Naur busybox-1.20.2/runit/chpst.c busybox-1.20.2.patch/runit/chpst.c +--- busybox-1.20.2/runit/chpst.c 2012-06-26 15:35:45.000000000 +0200 ++++ busybox-1.20.2.patch/runit/chpst.c 2012-07-16 17:08:07.387745858 +0200 +@@ -91,6 +91,7 @@ + //usage: "\n a SIGXCPU after N seconds" + + #include "libbb.h" ++#include /* getrlimit */ + + /* + Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit. +diff -Naur busybox-1.20.2/shell/shell_common.c busybox-1.20.2.patch/shell/shell_common.c +--- busybox-1.20.2/shell/shell_common.c 2012-06-26 15:35:45.000000000 +0200 ++++ busybox-1.20.2.patch/shell/shell_common.c 2012-07-16 17:08:07.388745877 +0200 +@@ -18,6 +18,7 @@ + */ + #include "libbb.h" + #include "shell_common.h" ++#include /* getrlimit */ + + const char defifsvar[] ALIGN1 = "IFS= \t\n"; +