aboutsummaryrefslogtreecommitdiff
path: root/networking/tcpudp.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/tcpudp.c')
-rw-r--r--networking/tcpudp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/tcpudp.c b/networking/tcpudp.c
index 3df6a98d8..31bc70459 100644
--- a/networking/tcpudp.c
+++ b/networking/tcpudp.c
@@ -67,6 +67,7 @@
67//usage: "\n -v Verbose" 67//usage: "\n -v Verbose"
68 68
69#include "libbb.h" 69#include "libbb.h"
70#include "common_bufsiz.h"
70 71
71/* Wants <limits.h> etc, thus included after libbb.h: */ 72/* Wants <limits.h> etc, thus included after libbb.h: */
72#ifdef __linux__ 73#ifdef __linux__
@@ -91,7 +92,7 @@ struct globals {
91 char **env_cur; 92 char **env_cur;
92 char *env_var[1]; /* actually bigger */ 93 char *env_var[1]; /* actually bigger */
93} FIX_ALIASING; 94} FIX_ALIASING;
94#define G (*(struct globals*)&bb_common_bufsiz1) 95#define G (*(struct globals*)bb_common_bufsiz1)
95#define verbose (G.verbose ) 96#define verbose (G.verbose )
96#define max_per_host (G.max_per_host) 97#define max_per_host (G.max_per_host)
97#define cur_per_host (G.cur_per_host) 98#define cur_per_host (G.cur_per_host)
@@ -100,6 +101,7 @@ struct globals {
100#define env_cur (G.env_cur ) 101#define env_cur (G.env_cur )
101#define env_var (G.env_var ) 102#define env_var (G.env_var )
102#define INIT_G() do { \ 103#define INIT_G() do { \
104 setup_common_bufsiz(); \
103 cmax = 30; \ 105 cmax = 30; \
104 env_cur = &env_var[0]; \ 106 env_cur = &env_var[0]; \
105} while (0) 107} while (0)