From c5fe9f7b723f949457263ef8e22ab807d5b549ce Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 5 Jul 2012 23:19:09 -0400 Subject: 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 --- miscutils/time.c | 1 + 1 file changed, 1 insertion(+) (limited to 'miscutils/time.c') diff --git a/miscutils/time.c b/miscutils/time.c index 945f15f..ffed386 100644 --- a/miscutils/time.c +++ b/miscutils/time.c @@ -16,6 +16,7 @@ //usage: "\n -v Verbose" #include "libbb.h" +#include /* getrusage */ /* Information on the resources used by a child process. */ typedef struct { -- cgit v1.1