aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-04-08 17:23:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-08 17:23:27 +0200
commit7bcde5f00dc3a5c92f36bb6ef6bf849794cd766e (patch)
tree49249dae2b01e39dfe75a04b10b4cdfe91566cd4
parent87a08e476b38ec9ac4ee93c34599b24a7bb284d9 (diff)
downloadbusybox-w32-7bcde5f00dc3a5c92f36bb6ef6bf849794cd766e.tar.gz
busybox-w32-7bcde5f00dc3a5c92f36bb6ef6bf849794cd766e.tar.bz2
busybox-w32-7bcde5f00dc3a5c92f36bb6ef6bf849794cd766e.zip
libbb.h: always include sys/resource.h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/nice.c1
-rw-r--r--debianutils/start_stop_daemon.c2
-rw-r--r--include/libbb.h1
-rw-r--r--init/init.c1
-rw-r--r--loginutils/login.c1
-rw-r--r--loginutils/passwd.c1
-rw-r--r--miscutils/time.c1
-rw-r--r--networking/ntpd.c1
-rw-r--r--runit/chpst.c1
-rw-r--r--shell/shell_common.c1
-rw-r--r--util-linux/renice.c1
11 files changed, 1 insertions, 11 deletions
diff --git a/coreutils/nice.c b/coreutils/nice.c
index aa8b06cce..da1696c42 100644
--- a/coreutils/nice.c
+++ b/coreutils/nice.c
@@ -22,7 +22,6 @@
22//usage: "Change scheduling priority, run PROG\n" 22//usage: "Change scheduling priority, run PROG\n"
23//usage: "\n -n ADJUST Adjust priority by ADJUST" 23//usage: "\n -n ADJUST Adjust priority by ADJUST"
24 24
25#include <sys/resource.h>
26#include "libbb.h" 25#include "libbb.h"
27 26
28int nice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 27int nice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index c8b7fa8f2..fa77a7e00 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -116,8 +116,6 @@ Misc options:
116//usage: ) 116//usage: )
117//usage: "\n -q Quiet" 117//usage: "\n -q Quiet"
118 118
119#include <sys/resource.h>
120
121/* Override ENABLE_FEATURE_PIDFILE */ 119/* Override ENABLE_FEATURE_PIDFILE */
122#define WANT_PIDFILE 1 120#define WANT_PIDFILE 1
123#include "libbb.h" 121#include "libbb.h"
diff --git a/include/libbb.h b/include/libbb.h
index ed9a562ff..c7bf33ef8 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -41,6 +41,7 @@
41#include <poll.h> 41#include <poll.h>
42#include <sys/ioctl.h> 42#include <sys/ioctl.h>
43#include <sys/mman.h> 43#include <sys/mman.h>
44#include <sys/resource.h>
44#include <sys/socket.h> 45#include <sys/socket.h>
45#include <sys/stat.h> 46#include <sys/stat.h>
46#include <sys/time.h> 47#include <sys/time.h>
diff --git a/init/init.c b/init/init.c
index cac165fc7..6439e2bcd 100644
--- a/init/init.c
+++ b/init/init.c
@@ -130,7 +130,6 @@
130#include "libbb.h" 130#include "libbb.h"
131#include "common_bufsiz.h" 131#include "common_bufsiz.h"
132#include <syslog.h> 132#include <syslog.h>
133#include <sys/resource.h>
134#ifdef __linux__ 133#ifdef __linux__
135# include <linux/vt.h> 134# include <linux/vt.h>
136# include <sys/sysinfo.h> 135# include <sys/sysinfo.h>
diff --git a/loginutils/login.c b/loginutils/login.c
index fcdb9592c..25bb5203b 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -64,7 +64,6 @@
64#include "libbb.h" 64#include "libbb.h"
65#include "common_bufsiz.h" 65#include "common_bufsiz.h"
66#include <syslog.h> 66#include <syslog.h>
67#include <sys/resource.h>
68 67
69#if ENABLE_SELINUX 68#if ENABLE_SELINUX
70# include <selinux/selinux.h> /* for is_selinux_enabled() */ 69# include <selinux/selinux.h> /* for is_selinux_enabled() */
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index d0408d8b4..59f47fc7b 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -39,7 +39,6 @@
39 39
40#include "libbb.h" 40#include "libbb.h"
41#include <syslog.h> 41#include <syslog.h>
42#include <sys/resource.h> /* setrlimit */
43 42
44static char* new_password(const struct passwd *pw, uid_t myuid, const char *algo) 43static char* new_password(const struct passwd *pw, uid_t myuid, const char *algo)
45{ 44{
diff --git a/miscutils/time.c b/miscutils/time.c
index 61f078755..7d6a7a29f 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -32,7 +32,6 @@
32//usage: "\n -a Append (else overwrite)" 32//usage: "\n -a Append (else overwrite)"
33 33
34#include "libbb.h" 34#include "libbb.h"
35#include <sys/resource.h> /* getrusage */
36 35
37/* Information on the resources used by a child process. */ 36/* Information on the resources used by a child process. */
38typedef struct { 37typedef struct {
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 8205ab271..6cd497090 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -94,7 +94,6 @@
94#include "libbb.h" 94#include "libbb.h"
95#include <math.h> 95#include <math.h>
96#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */ 96#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */
97#include <sys/resource.h> /* setpriority */
98#include <sys/timex.h> 97#include <sys/timex.h>
99#ifndef IPTOS_LOWDELAY 98#ifndef IPTOS_LOWDELAY
100# define IPTOS_LOWDELAY 0x10 99# define IPTOS_LOWDELAY 0x10
diff --git a/runit/chpst.c b/runit/chpst.c
index 3ecb85cba..c2641ce8a 100644
--- a/runit/chpst.c
+++ b/runit/chpst.c
@@ -135,7 +135,6 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
135//usage: "\n a SIGXCPU after N seconds" 135//usage: "\n a SIGXCPU after N seconds"
136 136
137#include "libbb.h" 137#include "libbb.h"
138#include <sys/resource.h> /* getrlimit */
139 138
140/* 139/*
141Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit. 140Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit.
diff --git a/shell/shell_common.c b/shell/shell_common.c
index c978693f9..9e58ee4fe 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -18,7 +18,6 @@
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 */
22 21
23const char defifsvar[] ALIGN1 = "IFS= \t\n"; 22const char defifsvar[] ALIGN1 = "IFS= \t\n";
24const char defoptindvar[] ALIGN1 = "OPTIND=1"; 23const char defoptindvar[] ALIGN1 = "OPTIND=1";
diff --git a/util-linux/renice.c b/util-linux/renice.c
index 46704591f..ee0fb3c8e 100644
--- a/util-linux/renice.c
+++ b/util-linux/renice.c
@@ -39,7 +39,6 @@
39//usage: "\n -u Process user names" 39//usage: "\n -u Process user names"
40 40
41#include "libbb.h" 41#include "libbb.h"
42#include <sys/resource.h>
43 42
44int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 43int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
45int renice_main(int argc UNUSED_PARAM, char **argv) 44int renice_main(int argc UNUSED_PARAM, char **argv)