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 /miscutils | |
| 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>
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/time.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |
