diff options
Diffstat (limited to 'runit')
-rw-r--r-- | runit/chpst.c | 1 | ||||
-rw-r--r-- | runit/sv.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 3ecb85cba..c2641ce8a 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -135,7 +135,6 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
135 | //usage: "\n a SIGXCPU after N seconds" | 135 | //usage: "\n a SIGXCPU after N seconds" |
136 | 136 | ||
137 | #include "libbb.h" | 137 | #include "libbb.h" |
138 | #include <sys/resource.h> /* getrlimit */ | ||
139 | 138 | ||
140 | /* | 139 | /* |
141 | Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit. | 140 | Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit. |
diff --git a/runit/sv.c b/runit/sv.c index 86d181872..8054daedf 100644 --- a/runit/sv.c +++ b/runit/sv.c | |||
@@ -222,6 +222,7 @@ struct globals { | |||
222 | #define str_equal(s,t) (strcmp((s), (t)) == 0) | 222 | #define str_equal(s,t) (strcmp((s), (t)) == 0) |
223 | 223 | ||
224 | 224 | ||
225 | #if ENABLE_SV || ENABLE_SVC | ||
225 | static void fatal_cannot(const char *m1) NORETURN; | 226 | static void fatal_cannot(const char *m1) NORETURN; |
226 | static void fatal_cannot(const char *m1) | 227 | static void fatal_cannot(const char *m1) |
227 | { | 228 | { |
@@ -688,6 +689,7 @@ static int sv(char **argv) | |||
688 | } | 689 | } |
689 | return rc > 99 ? 99 : rc; | 690 | return rc > 99 ? 99 : rc; |
690 | } | 691 | } |
692 | #endif | ||
691 | 693 | ||
692 | #if ENABLE_SV | 694 | #if ENABLE_SV |
693 | int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 695 | int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |