aboutsummaryrefslogtreecommitdiff
path: root/coreutils/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 20bd61860..344b4e61e 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -93,6 +93,7 @@
93//usage: ) 93//usage: )
94 94
95#include "libbb.h" 95#include "libbb.h"
96#include "common_bufsiz.h"
96#include "unicode.h" 97#include "unicode.h"
97 98
98 99
@@ -365,8 +366,9 @@ struct globals {
365 time_t current_time_t; 366 time_t current_time_t;
366#endif 367#endif
367} FIX_ALIASING; 368} FIX_ALIASING;
368#define G (*(struct globals*)&bb_common_bufsiz1) 369#define G (*(struct globals*)bb_common_bufsiz1)
369#define INIT_G() do { \ 370#define INIT_G() do { \
371 setup_common_bufsiz(); \
370 /* we have to zero it out because of NOEXEC */ \ 372 /* we have to zero it out because of NOEXEC */ \
371 memset(&G, 0, sizeof(G)); \ 373 memset(&G, 0, sizeof(G)); \
372 IF_FEATURE_AUTOWIDTH(G_terminal_width = TERMINAL_WIDTH;) \ 374 IF_FEATURE_AUTOWIDTH(G_terminal_width = TERMINAL_WIDTH;) \