diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-08-29 11:34:08 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-08-29 11:34:08 +0000 |
commit | 5607e36f1029fbc2324c813b0e2de85f2ca6dc19 (patch) | |
tree | c24c4d7cb02a12fc9e72db056d8a5d0ec7b9ad44 /libbb | |
parent | b782629b0fea8d5e2ac6101357f094f7e32ba665 (diff) | |
download | busybox-w32-5607e36f1029fbc2324c813b0e2de85f2ca6dc19.tar.gz busybox-w32-5607e36f1029fbc2324c813b0e2de85f2ca6dc19.tar.bz2 busybox-w32-5607e36f1029fbc2324c813b0e2de85f2ca6dc19.zip |
Fix for compiling with ipv6
git-svn-id: svn://busybox.net/trunk/busybox@7283 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/interface.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libbb/interface.c b/libbb/interface.c index 394ba5f4c..28007f443 100644 --- a/libbb/interface.c +++ b/libbb/interface.c | |||
@@ -15,7 +15,7 @@ | |||
15 | * that either displays or sets the characteristics of | 15 | * that either displays or sets the characteristics of |
16 | * one or more of the system's networking interfaces. | 16 | * one or more of the system's networking interfaces. |
17 | * | 17 | * |
18 | * Version: $Id: interface.c,v 1.19 2003/08/02 00:04:18 mjn3 Exp $ | 18 | * Version: $Id: interface.c,v 1.20 2003/08/29 11:34:08 bug1 Exp $ |
19 | * | 19 | * |
20 | * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> | 20 | * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> |
21 | * and others. Copyright 1993 MicroWalt Corporation | 21 | * and others. Copyright 1993 MicroWalt Corporation |
@@ -51,12 +51,6 @@ | |||
51 | #undef HAVE_AFECONET | 51 | #undef HAVE_AFECONET |
52 | #undef HAVE_AFASH | 52 | #undef HAVE_AFASH |
53 | 53 | ||
54 | #ifdef CONFIG_FEATURE_IPV6 | ||
55 | # define HAVE_AFINET6 1 | ||
56 | #else | ||
57 | # undef HAVE_AFINET6 | ||
58 | #endif | ||
59 | |||
60 | /* | 54 | /* |
61 | * | 55 | * |
62 | * Device Hardware types. | 56 | * Device Hardware types. |
@@ -81,6 +75,12 @@ | |||
81 | #include <net/if_arp.h> | 75 | #include <net/if_arp.h> |
82 | #include "libbb.h" | 76 | #include "libbb.h" |
83 | 77 | ||
78 | #ifdef CONFIG_FEATURE_IPV6 | ||
79 | # define HAVE_AFINET6 1 | ||
80 | #else | ||
81 | # undef HAVE_AFINET6 | ||
82 | #endif | ||
83 | |||
84 | #define _(x) x | 84 | #define _(x) x |
85 | #define _PATH_PROCNET_DEV "/proc/net/dev" | 85 | #define _PATH_PROCNET_DEV "/proc/net/dev" |
86 | #define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6" | 86 | #define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6" |
@@ -100,7 +100,7 @@ | |||
100 | 100 | ||
101 | struct in6_ifreq { | 101 | struct in6_ifreq { |
102 | struct in6_addr ifr6_addr; | 102 | struct in6_addr ifr6_addr; |
103 | __u32 ifr6_prefixlen; | 103 | uint32_t ifr6_prefixlen; |
104 | unsigned int ifr6_ifindex; | 104 | unsigned int ifr6_ifindex; |
105 | }; | 105 | }; |
106 | 106 | ||