diff options
Diffstat (limited to 'networking/ping.c')
-rw-r--r-- | networking/ping.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/ping.c b/networking/ping.c index 0eb1ae799..761660979 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <net/if.h> | 28 | #include <net/if.h> |
29 | #include <netinet/ip_icmp.h> | 29 | #include <netinet/ip_icmp.h> |
30 | #include "libbb.h" | 30 | #include "libbb.h" |
31 | #include "common_bufsiz.h" | ||
31 | 32 | ||
32 | #ifdef __BIONIC__ | 33 | #ifdef __BIONIC__ |
33 | /* should be in netinet/ip_icmp.h */ | 34 | /* should be in netinet/ip_icmp.h */ |
@@ -186,7 +187,7 @@ struct globals { | |||
186 | char *hostname; | 187 | char *hostname; |
187 | char packet[DEFDATALEN + MAXIPLEN + MAXICMPLEN]; | 188 | char packet[DEFDATALEN + MAXIPLEN + MAXICMPLEN]; |
188 | } FIX_ALIASING; | 189 | } FIX_ALIASING; |
189 | #define G (*(struct globals*)&bb_common_bufsiz1) | 190 | #define G (*(struct globals*)bb_common_bufsiz1) |
190 | #define INIT_G() do { } while (0) | 191 | #define INIT_G() do { } while (0) |
191 | 192 | ||
192 | static void noresp(int ign UNUSED_PARAM) | 193 | static void noresp(int ign UNUSED_PARAM) |
@@ -378,7 +379,7 @@ struct globals { | |||
378 | } pingaddr; | 379 | } pingaddr; |
379 | unsigned char rcvd_tbl[MAX_DUP_CHK / 8]; | 380 | unsigned char rcvd_tbl[MAX_DUP_CHK / 8]; |
380 | } FIX_ALIASING; | 381 | } FIX_ALIASING; |
381 | #define G (*(struct globals*)&bb_common_bufsiz1) | 382 | #define G (*(struct globals*)bb_common_bufsiz1) |
382 | #define if_index (G.if_index ) | 383 | #define if_index (G.if_index ) |
383 | #define source_lsa (G.source_lsa ) | 384 | #define source_lsa (G.source_lsa ) |
384 | #define str_I (G.str_I ) | 385 | #define str_I (G.str_I ) |