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 /networking | |
parent | 9ad8979ff15e1b894ee1f4bb6a2535a1a2c20d65 (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 'networking')
-rw-r--r-- | networking/inetd.c | 1 | ||||
-rw-r--r-- | networking/ntpd.c | 1 | ||||
-rw-r--r-- | networking/ntpd_simple.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index 1308d74c7..00baf6971 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -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> diff --git a/networking/ntpd.c b/networking/ntpd.c index 72e9d0be2..5b92db6f6 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -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 diff --git a/networking/ntpd_simple.c b/networking/ntpd_simple.c index 4ad44e4f3..1b7c66b84 100644 --- a/networking/ntpd_simple.c +++ b/networking/ntpd_simple.c @@ -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 |