diff options
Diffstat (limited to 'runit/runsvdir.c')
-rw-r--r-- | runit/runsvdir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index b3d9e7390..2b7927542 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c | |||
@@ -57,6 +57,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
57 | 57 | ||
58 | #include <sys/file.h> | 58 | #include <sys/file.h> |
59 | #include "libbb.h" | 59 | #include "libbb.h" |
60 | #include "common_bufsiz.h" | ||
60 | #include "runit_lib.h" | 61 | #include "runit_lib.h" |
61 | 62 | ||
62 | #define MAXSERVICES 1000 | 63 | #define MAXSERVICES 1000 |
@@ -84,7 +85,7 @@ struct globals { | |||
84 | unsigned stamplog; | 85 | unsigned stamplog; |
85 | #endif | 86 | #endif |
86 | } FIX_ALIASING; | 87 | } FIX_ALIASING; |
87 | #define G (*(struct globals*)&bb_common_bufsiz1) | 88 | #define G (*(struct globals*)bb_common_bufsiz1) |
88 | #define sv (G.sv ) | 89 | #define sv (G.sv ) |
89 | #define svdir (G.svdir ) | 90 | #define svdir (G.svdir ) |
90 | #define svnum (G.svnum ) | 91 | #define svnum (G.svnum ) |
@@ -92,7 +93,7 @@ struct globals { | |||
92 | #define logpipe (G.logpipe ) | 93 | #define logpipe (G.logpipe ) |
93 | #define pfd (G.pfd ) | 94 | #define pfd (G.pfd ) |
94 | #define stamplog (G.stamplog ) | 95 | #define stamplog (G.stamplog ) |
95 | #define INIT_G() do { } while (0) | 96 | #define INIT_G() do { setup_common_bufsiz(); } while (0) |
96 | 97 | ||
97 | static void fatal2_cannot(const char *m1, const char *m2) | 98 | static void fatal2_cannot(const char *m1, const char *m2) |
98 | { | 99 | { |