summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-26 09:02:06 +0000
committerGlenn L McGrath2002-11-26 09:02:06 +0000
commit8ae4cab4a85eea297a0b8ea9aa65c3c23b0a664b (patch)
tree8bdc5ce06345033fdb627a10abf4c3cd6b924e82 /libbb
parentc5dced17c55134252928c728a1ae15f038211df5 (diff)
downloadbusybox-8ae4cab4a85eea297a0b8ea9aa65c3c23b0a664b.zip
busybox-8ae4cab4a85eea297a0b8ea9aa65c3c23b0a664b.tar.gz
use #ifdef CONFIG_* instead of #if CONFIG_*
Diffstat (limited to 'libbb')
-rw-r--r--libbb/interface.c9
-rw-r--r--libbb/xconnect.c2
2 files changed, 6 insertions, 5 deletions
diff --git a/libbb/interface.c b/libbb/interface.c
index b7353e5..2f43192 100644
--- a/libbb/interface.c
+++ b/libbb/interface.c
@@ -15,7 +15,7 @@
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
- * Version: $Id: interface.c,v 1.10 2002/09/17 06:36:02 andersen Exp $
+ * Version: $Id: interface.c,v 1.11 2002/11/26 09:02:04 bug1 Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
@@ -44,7 +44,6 @@
*
*/
#define HAVE_AFINET 1
-#undef HAVE_AFINET6
#undef HAVE_AFIPX
#undef HAVE_AFATALK
#undef HAVE_AFNETROM
@@ -52,8 +51,10 @@
#undef HAVE_AFECONET
#undef HAVE_AFASH
-#if CONFIG_FEATURE_IPV6
-#define HAVE_AFINET6 1
+#ifdef CONFIG_FEATURE_IPV6
+# define HAVE_AFINET6 1
+#else
+# undef HAVE_AFINET6
#endif
/*
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index f3a1b44..bc6505a 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -17,7 +17,7 @@
int xconnect(const char *host, const char *port)
{
-#if CONFIG_FEATURE_IPV6
+#ifdef CONFIG_FEATURE_IPV6
struct addrinfo hints;
struct addrinfo *res;
struct addrinfo *addr_info;