aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-11-26 02:40:56 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-11-26 02:40:56 +0000
commita564700e719861df3c54e160ad343b5342d90f89 (patch)
treeea9ec84f4401e697e2644f8378124e2778a7d7d6 /libbb
parentbd0509d69f945f9bdedd707b661d0b15d1c39d37 (diff)
downloadbusybox-w32-a564700e719861df3c54e160ad343b5342d90f89.tar.gz
busybox-w32-a564700e719861df3c54e160ad343b5342d90f89.tar.bz2
busybox-w32-a564700e719861df3c54e160ad343b5342d90f89.zip
Use #ifdef instead of #if
git-svn-id: svn://busybox.net/trunk/busybox@6017 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/create_icmp6_socket.c2
-rw-r--r--libbb/inet_common.c8
-rw-r--r--libbb/xgethostbyname2.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/libbb/create_icmp6_socket.c b/libbb/create_icmp6_socket.c
index a09565605..1d0b6b6bf 100644
--- a/libbb/create_icmp6_socket.c
+++ b/libbb/create_icmp6_socket.c
@@ -14,7 +14,7 @@
14#include <unistd.h> 14#include <unistd.h>
15#include "libbb.h" 15#include "libbb.h"
16 16
17#if CONFIG_FEATURE_IPV6 17#ifdef CONFIG_FEATURE_IPV6
18int create_icmp6_socket(void) 18int create_icmp6_socket(void)
19{ 19{
20 struct protoent *proto; 20 struct protoent *proto;
diff --git a/libbb/inet_common.c b/libbb/inet_common.c
index c7bf409c4..52fd1349e 100644
--- a/libbb/inet_common.c
+++ b/libbb/inet_common.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * Heavily modified by Manuel Novoa III Mar 12, 2001 5 * Heavily modified by Manuel Novoa III Mar 12, 2001
6 * 6 *
7 * Version: $Id: inet_common.c,v 1.3 2002/07/03 11:46:36 andersen Exp $ 7 * Version: $Id: inet_common.c,v 1.4 2002/11/26 02:35:15 bug1 Exp $
8 * 8 *
9 */ 9 */
10 10
@@ -17,7 +17,7 @@
17#include "libbb.h" 17#include "libbb.h"
18 18
19#ifdef DEBUG 19#ifdef DEBUG
20#include <resolv.h> 20# include <resolv.h>
21#endif 21#endif
22 22
23 23
@@ -178,7 +178,7 @@ int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in,
178 return (0); 178 return (0);
179} 179}
180 180
181#if CONFIG_FEATURE_IPV6 181#ifdef CONFIG_FEATURE_IPV6
182 182
183int INET6_resolve(char *name, struct sockaddr_in6 *sin6) 183int INET6_resolve(char *name, struct sockaddr_in6 *sin6)
184{ 184{
@@ -199,7 +199,7 @@ int INET6_resolve(char *name, struct sockaddr_in6 *sin6)
199} 199}
200 200
201#ifndef IN6_IS_ADDR_UNSPECIFIED 201#ifndef IN6_IS_ADDR_UNSPECIFIED
202#define IN6_IS_ADDR_UNSPECIFIED(a) \ 202# define IN6_IS_ADDR_UNSPECIFIED(a) \
203 (((__u32 *) (a))[0] == 0 && ((__u32 *) (a))[1] == 0 && \ 203 (((__u32 *) (a))[0] == 0 && ((__u32 *) (a))[1] == 0 && \
204 ((__u32 *) (a))[2] == 0 && ((__u32 *) (a))[3] == 0) 204 ((__u32 *) (a))[2] == 0 && ((__u32 *) (a))[3] == 0)
205#endif 205#endif
diff --git a/libbb/xgethostbyname2.c b/libbb/xgethostbyname2.c
index c66acfee1..f4cbb6a56 100644
--- a/libbb/xgethostbyname2.c
+++ b/libbb/xgethostbyname2.c
@@ -24,7 +24,7 @@
24#include "libbb.h" 24#include "libbb.h"
25 25
26 26
27#if CONFIG_FEATURE_IPV6 27#ifdef CONFIG_FEATURE_IPV6
28struct hostent *xgethostbyname2(const char *name, int af) 28struct hostent *xgethostbyname2(const char *name, int af)
29{ 29{
30 struct hostent *retval; 30 struct hostent *retval;