diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-08 18:13:57 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-08 18:13:57 +0200 |
commit | f2bf20f5d54769ca3c4f83ac8fbcb7e697b2e66a (patch) | |
tree | 727362e4fc7528548bee677556bbac509fb442c9 | |
parent | 8403b01217d4dfc86e8603715eeb52f9993e09b7 (diff) | |
download | busybox-w32-f2bf20f5d54769ca3c4f83ac8fbcb7e697b2e66a.tar.gz busybox-w32-f2bf20f5d54769ca3c4f83ac8fbcb7e697b2e66a.tar.bz2 busybox-w32-f2bf20f5d54769ca3c4f83ac8fbcb7e697b2e66a.zip |
udhcpc: fix for some Android toolchain breakage
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/udhcp/dhcpc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 11f7b2d49..915f65935 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -29,6 +29,20 @@ | |||
29 | #include <linux/filter.h> | 29 | #include <linux/filter.h> |
30 | #include <linux/if_packet.h> | 30 | #include <linux/if_packet.h> |
31 | 31 | ||
32 | #ifndef PACKET_AUXDATA | ||
33 | # define PACKET_AUXDATA 8 | ||
34 | struct tpacket_auxdata { | ||
35 | uint32_t tp_status; | ||
36 | uint32_t tp_len; | ||
37 | uint32_t tp_snaplen; | ||
38 | uint16_t tp_mac; | ||
39 | uint16_t tp_net; | ||
40 | uint16_t tp_vlan_tci; | ||
41 | uint16_t tp_padding; | ||
42 | }; | ||
43 | #endif | ||
44 | |||
45 | |||
32 | /* "struct client_config_t client_config" is in bb_common_bufsiz1 */ | 46 | /* "struct client_config_t client_config" is in bb_common_bufsiz1 */ |
33 | 47 | ||
34 | 48 | ||