diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-08-29 11:34:08 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-08-29 11:34:08 +0000 |
commit | b54a748621718853c25ab41fef85b196bbd55fef (patch) | |
tree | c24c4d7cb02a12fc9e72db056d8a5d0ec7b9ad44 | |
parent | 08dea3e5a71bbdbf3bb123ff05c521eb152c690a (diff) | |
download | busybox-w32-b54a748621718853c25ab41fef85b196bbd55fef.tar.gz busybox-w32-b54a748621718853c25ab41fef85b196bbd55fef.tar.bz2 busybox-w32-b54a748621718853c25ab41fef85b196bbd55fef.zip |
Fix for compiling with ipv6
-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 | ||