diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-26 09:02:06 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-26 09:02:06 +0000 |
commit | 56d3591b4c25a640ecb31b8dd50805628bf08cee (patch) | |
tree | 8bdc5ce06345033fdb627a10abf4c3cd6b924e82 /libbb | |
parent | 8e3bddcd90fd23b3901215f1f1936cb4e211935a (diff) | |
download | busybox-w32-56d3591b4c25a640ecb31b8dd50805628bf08cee.tar.gz busybox-w32-56d3591b4c25a640ecb31b8dd50805628bf08cee.tar.bz2 busybox-w32-56d3591b4c25a640ecb31b8dd50805628bf08cee.zip |
use #ifdef CONFIG_* instead of #if CONFIG_*
git-svn-id: svn://busybox.net/trunk/busybox@6022 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/interface.c | 9 | ||||
-rw-r--r-- | libbb/xconnect.c | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/libbb/interface.c b/libbb/interface.c index b7353e5ad..2f4319265 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.10 2002/09/17 06:36:02 andersen Exp $ | 18 | * Version: $Id: interface.c,v 1.11 2002/11/26 09:02:04 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 |
@@ -44,7 +44,6 @@ | |||
44 | * | 44 | * |
45 | */ | 45 | */ |
46 | #define HAVE_AFINET 1 | 46 | #define HAVE_AFINET 1 |
47 | #undef HAVE_AFINET6 | ||
48 | #undef HAVE_AFIPX | 47 | #undef HAVE_AFIPX |
49 | #undef HAVE_AFATALK | 48 | #undef HAVE_AFATALK |
50 | #undef HAVE_AFNETROM | 49 | #undef HAVE_AFNETROM |
@@ -52,8 +51,10 @@ | |||
52 | #undef HAVE_AFECONET | 51 | #undef HAVE_AFECONET |
53 | #undef HAVE_AFASH | 52 | #undef HAVE_AFASH |
54 | 53 | ||
55 | #if CONFIG_FEATURE_IPV6 | 54 | #ifdef CONFIG_FEATURE_IPV6 |
56 | #define HAVE_AFINET6 1 | 55 | # define HAVE_AFINET6 1 |
56 | #else | ||
57 | # undef HAVE_AFINET6 | ||
57 | #endif | 58 | #endif |
58 | 59 | ||
59 | /* | 60 | /* |
diff --git a/libbb/xconnect.c b/libbb/xconnect.c index f3a1b4462..bc6505a40 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | int xconnect(const char *host, const char *port) | 18 | int xconnect(const char *host, const char *port) |
19 | { | 19 | { |
20 | #if CONFIG_FEATURE_IPV6 | 20 | #ifdef CONFIG_FEATURE_IPV6 |
21 | struct addrinfo hints; | 21 | struct addrinfo hints; |
22 | struct addrinfo *res; | 22 | struct addrinfo *res; |
23 | struct addrinfo *addr_info; | 23 | struct addrinfo *addr_info; |