diff options
Diffstat (limited to 'findutils/grep.c')
-rw-r--r-- | findutils/grep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 5ed3faab2..e956abbb8 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -58,6 +58,7 @@ | |||
58 | //config: Print the specified number of context lines (-C). | 58 | //config: Print the specified number of context lines (-C). |
59 | 59 | ||
60 | #include "libbb.h" | 60 | #include "libbb.h" |
61 | #include "common_bufsiz.h" | ||
61 | #include "xregex.h" | 62 | #include "xregex.h" |
62 | 63 | ||
63 | 64 | ||
@@ -209,8 +210,9 @@ struct globals { | |||
209 | llist_t *pattern_head; /* growable list of patterns to match */ | 210 | llist_t *pattern_head; /* growable list of patterns to match */ |
210 | const char *cur_file; /* the current file we are reading */ | 211 | const char *cur_file; /* the current file we are reading */ |
211 | } FIX_ALIASING; | 212 | } FIX_ALIASING; |
212 | #define G (*(struct globals*)&bb_common_bufsiz1) | 213 | #define G (*(struct globals*)bb_common_bufsiz1) |
213 | #define INIT_G() do { \ | 214 | #define INIT_G() do { \ |
215 | setup_common_bufsiz(); \ | ||
214 | BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ | 216 | BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ |
215 | } while (0) | 217 | } while (0) |
216 | #define max_matches (G.max_matches ) | 218 | #define max_matches (G.max_matches ) |