summaryrefslogtreecommitdiffhomepage
path: root/runit/chpst.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-05 23:19:09 -0400
committerMike Frysinger <vapier@gentoo.org>2012-07-05 23:19:09 -0400
commitc5fe9f7b723f949457263ef8e22ab807d5b549ce (patch)
tree805e562a5a90dbafcdeabadc78a81d51b1b862f0 /runit/chpst.c
parent9ad8979ff15e1b894ee1f4bb6a2535a1a2c20d65 (diff)
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 'runit/chpst.c')
-rw-r--r--runit/chpst.c1
1 files changed, 1 insertions, 0 deletions
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.
//usage: "\n a SIGXCPU after N seconds"
#include "libbb.h"
+#include <sys/resource.h> /* getrlimit */
/*
Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit.