include sys/resource.h where needed
No binary (build failed)
—
(log yok)
| @@ -15,6 +15,7 @@ | |
| #include "libbb.h" | |
| #include <syslog.h> | |
| + | #include <sys/resource.h> /* setrlimit */ |
| static void nuke_str(char *str) | |
| { | |
| @@ -16,6 +16,7 @@ | |
| //usage: "\n -v Verbose" | |
| #include "libbb.h" | |
| + | #include <sys/resource.h> /* getrusage */ |
| /* Information on the resources used by a child process. */ | |
| typedef struct { | |
| @@ -165,6 +165,7 @@ | |
| //usage: "\n (default: 0 - disabled)" | |
| #include <syslog.h> | |
| + | #include <sys/resource.h> /* setrlimit */ |
| #include <sys/socket.h> /* un.h may need this */ | |
| #include <sys/un.h> | |
| @@ -46,6 +46,7 @@ | |
| #include "libbb.h" | |
| #include <math.h> | |
| #include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */ | |
| + | #include <sys/resource.h> /* setpriority */ |
| #include <sys/timex.h> | |
| #ifndef IPTOS_LOWDELAY | |
| # define IPTOS_LOWDELAY 0x10 | |
| @@ -7,6 +7,7 @@ | |
| */ | |
| #include "libbb.h" | |
| #include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */ | |
| + | #include <sys/resource.h> /* setpriority */ |
| #ifndef IPTOS_LOWDELAY | |
| # define IPTOS_LOWDELAY 0x10 | |
| #endif | |
| @@ -91,6 +91,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| //usage: "\n a SIGXCPU after N seconds" | |
| #include "libbb.h" | |
| + | #include <sys/resource.h> /* getrlimit */ |
| /* | |
| Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit. | |
| @@ -18,6 +18,7 @@ | |
| */ | |
| #include "libbb.h" | |
| #include "shell_common.h" | |
| + | #include <sys/resource.h> /* getrlimit */ |
| const char defifsvar[] ALIGN1 = "IFS= \t\n"; | |