diff options
Diffstat (limited to 'procps/top.c')
-rw-r--r-- | procps/top.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/top.c b/procps/top.c index ddf794d7d..1c42b249c 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -105,6 +105,7 @@ | |||
105 | //config: Enable 's' in top (gives lots of memory info). | 105 | //config: Enable 's' in top (gives lots of memory info). |
106 | 106 | ||
107 | #include "libbb.h" | 107 | #include "libbb.h" |
108 | #include "common_bufsiz.h" | ||
108 | 109 | ||
109 | 110 | ||
110 | typedef struct top_status_t { | 111 | typedef struct top_status_t { |
@@ -183,7 +184,7 @@ struct globals { | |||
183 | char line_buf[80]; | 184 | char line_buf[80]; |
184 | }; //FIX_ALIASING; - large code growth | 185 | }; //FIX_ALIASING; - large code growth |
185 | enum { LINE_BUF_SIZE = COMMON_BUFSIZE - offsetof(struct globals, line_buf) }; | 186 | enum { LINE_BUF_SIZE = COMMON_BUFSIZE - offsetof(struct globals, line_buf) }; |
186 | #define G (*(struct globals*)&bb_common_bufsiz1) | 187 | #define G (*(struct globals*)bb_common_bufsiz1) |
187 | #define top (G.top ) | 188 | #define top (G.top ) |
188 | #define ntop (G.ntop ) | 189 | #define ntop (G.ntop ) |
189 | #define sort_field (G.sort_field ) | 190 | #define sort_field (G.sort_field ) |