diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-07-05 23:19:09 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-07-05 23:19:09 -0400 |
commit | c5fe9f7b723f949457263ef8e22ab807d5b549ce (patch) | |
tree | 805e562a5a90dbafcdeabadc78a81d51b1b862f0 | |
parent | 9ad8979ff15e1b894ee1f4bb6a2535a1a2c20d65 (diff) | |
download | busybox-w32-c5fe9f7b723f949457263ef8e22ab807d5b549ce.tar.gz busybox-w32-c5fe9f7b723f949457263ef8e22ab807d5b549ce.tar.bz2 busybox-w32-c5fe9f7b723f949457263ef8e22ab807d5b549ce.zip |
include sys/resource.h where needed
We use functions from sys/resource.h in misc applets, but don't include
the header. This breaks building with newer glibc versions, so add the
include where needed.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | loginutils/passwd.c | 1 | ||||
-rw-r--r-- | miscutils/time.c | 1 | ||||
-rw-r--r-- | networking/inetd.c | 1 | ||||
-rw-r--r-- | networking/ntpd.c | 1 | ||||
-rw-r--r-- | networking/ntpd_simple.c | 1 | ||||
-rw-r--r-- | runit/chpst.c | 1 | ||||
-rw-r--r-- | shell/shell_common.c | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index b83db0083..a7006f054 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c | |||
@@ -15,6 +15,7 @@ | |||
15 | 15 | ||
16 | #include "libbb.h" | 16 | #include "libbb.h" |
17 | #include <syslog.h> | 17 | #include <syslog.h> |
18 | #include <sys/resource.h> /* setrlimit */ | ||
18 | 19 | ||
19 | static void nuke_str(char *str) | 20 | static void nuke_str(char *str) |
20 | { | 21 | { |
diff --git a/miscutils/time.c b/miscutils/time.c index 945f15f0d..ffed38632 100644 --- a/miscutils/time.c +++ b/miscutils/time.c | |||
@@ -16,6 +16,7 @@ | |||
16 | //usage: "\n -v Verbose" | 16 | //usage: "\n -v Verbose" |
17 | 17 | ||
18 | #include "libbb.h" | 18 | #include "libbb.h" |
19 | #include <sys/resource.h> /* getrusage */ | ||
19 | 20 | ||
20 | /* Information on the resources used by a child process. */ | 21 | /* Information on the resources used by a child process. */ |
21 | typedef struct { | 22 | typedef struct { |
diff --git a/networking/inetd.c b/networking/inetd.c index 1308d74c7..00baf6971 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -165,6 +165,7 @@ | |||
165 | //usage: "\n (default: 0 - disabled)" | 165 | //usage: "\n (default: 0 - disabled)" |
166 | 166 | ||
167 | #include <syslog.h> | 167 | #include <syslog.h> |
168 | #include <sys/resource.h> /* setrlimit */ | ||
168 | #include <sys/socket.h> /* un.h may need this */ | 169 | #include <sys/socket.h> /* un.h may need this */ |
169 | #include <sys/un.h> | 170 | #include <sys/un.h> |
170 | 171 | ||
diff --git a/networking/ntpd.c b/networking/ntpd.c index 72e9d0be2..5b92db6f6 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include "libbb.h" | 46 | #include "libbb.h" |
47 | #include <math.h> | 47 | #include <math.h> |
48 | #include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */ | 48 | #include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */ |
49 | #include <sys/resource.h> /* setpriority */ | ||
49 | #include <sys/timex.h> | 50 | #include <sys/timex.h> |
50 | #ifndef IPTOS_LOWDELAY | 51 | #ifndef IPTOS_LOWDELAY |
51 | # define IPTOS_LOWDELAY 0x10 | 52 | # define IPTOS_LOWDELAY 0x10 |
diff --git a/networking/ntpd_simple.c b/networking/ntpd_simple.c index 4ad44e4f3..1b7c66b84 100644 --- a/networking/ntpd_simple.c +++ b/networking/ntpd_simple.c | |||
@@ -7,6 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | #include "libbb.h" | 8 | #include "libbb.h" |
9 | #include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */ | 9 | #include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */ |
10 | #include <sys/resource.h> /* setpriority */ | ||
10 | #ifndef IPTOS_LOWDELAY | 11 | #ifndef IPTOS_LOWDELAY |
11 | # define IPTOS_LOWDELAY 0x10 | 12 | # define IPTOS_LOWDELAY 0x10 |
12 | #endif | 13 | #endif |
diff --git a/runit/chpst.c b/runit/chpst.c index ac296babf..ed72c8b8c 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -91,6 +91,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
91 | //usage: "\n a SIGXCPU after N seconds" | 91 | //usage: "\n a SIGXCPU after N seconds" |
92 | 92 | ||
93 | #include "libbb.h" | 93 | #include "libbb.h" |
94 | #include <sys/resource.h> /* getrlimit */ | ||
94 | 95 | ||
95 | /* | 96 | /* |
96 | Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit. | 97 | Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit. |
diff --git a/shell/shell_common.c b/shell/shell_common.c index 51c92d60e..780e27ebd 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #include "libbb.h" | 19 | #include "libbb.h" |
20 | #include "shell_common.h" | 20 | #include "shell_common.h" |
21 | #include <sys/resource.h> /* getrlimit */ | ||
21 | 22 | ||
22 | const char defifsvar[] ALIGN1 = "IFS= \t\n"; | 23 | const char defifsvar[] ALIGN1 = "IFS= \t\n"; |
23 | 24 | ||