cfd3d7d
diff -up net-tools-1.60/ifconfig.c.ifdef-vs-if net-tools-1.60/ifconfig.c
cfd3d7d
--- net-tools-1.60/ifconfig.c.ifdef-vs-if	2011-01-03 12:23:14.000000000 +0100
cfd3d7d
+++ net-tools-1.60/ifconfig.c	2011-01-03 12:31:40.000000000 +0100
cfd3d7d
@@ -51,7 +51,7 @@
cfd3d7d
 #include <asm/types.h>
cfd3d7d
 
cfd3d7d
 
cfd3d7d
-#ifdef HAVE_HWSLIP
cfd3d7d
+#if HAVE_HWSLIP
cfd3d7d
 #include <linux/if_slip.h>
cfd3d7d
 #endif
cfd3d7d
 
cfd3d7d
@@ -784,7 +784,7 @@ int main(int argc, char **argv)
cfd3d7d
 		continue;
cfd3d7d
 	    }
cfd3d7d
 #endif
cfd3d7d
-#ifdef HAVE_AFINET
cfd3d7d
+#if HAVE_AFINET
cfd3d7d
 	    { /* ipv4 address a.b.c.d */
cfd3d7d
 		unsigned long ip, nm, bc;
cfd3d7d
 		safe_strncpy(host, *spp, (sizeof host));
cfd3d7d
@@ -875,7 +875,7 @@ int main(int argc, char **argv)
cfd3d7d
 		continue;
cfd3d7d
 	    }
cfd3d7d
 #endif
cfd3d7d
-#ifdef HAVE_AFINET
cfd3d7d
+#if HAVE_AFINET
cfd3d7d
 	    {
cfd3d7d
 		/* ipv4 address a.b.c.d */
cfd3d7d
 		unsigned long ip, nm, bc;
cfd3d7d
diff -up net-tools-1.60/lib/interface.c.ifdef-vs-if net-tools-1.60/lib/interface.c
cfd3d7d
--- net-tools-1.60/lib/interface.c.ifdef-vs-if	2011-01-03 12:23:14.000000000 +0100
cfd3d7d
+++ net-tools-1.60/lib/interface.c	2011-01-03 12:40:57.000000000 +0100
cfd3d7d
@@ -36,7 +36,7 @@
cfd3d7d
 #include <neteconet/ec.h>
cfd3d7d
 #endif
cfd3d7d
 
cfd3d7d
-#ifdef HAVE_HWSLIP
cfd3d7d
+#if HAVE_HWSLIP
cfd3d7d
 #include <linux/if_slip.h>
cfd3d7d
 #include <net/if_arp.h>
cfd3d7d
 #endif
cfd3d7d
@@ -482,7 +482,7 @@ int if_fetch(struct interface *ife)
cfd3d7d
     else
cfd3d7d
 	ife->mtu = ifr.ifr_mtu;
cfd3d7d
 
cfd3d7d
-#ifdef HAVE_HWSLIP
cfd3d7d
+#if HAVE_HWSLIP
cfd3d7d
     if (ife->type == ARPHRD_SLIP || ife->type == ARPHRD_CSLIP ||
cfd3d7d
 	ife->type == ARPHRD_SLIP6 || ife->type == ARPHRD_CSLIP6 ||
cfd3d7d
 	ife->type == ARPHRD_ADAPT) {
cfd3d7d
@@ -726,8 +726,10 @@ void ife_print_long(struct interface *pt
cfd3d7d
 
cfd3d7d
     hf = ptr->type;
cfd3d7d
 
cfd3d7d
+#if HAVE_HWSLIP
cfd3d7d
     if (hf == ARPHRD_CSLIP || hf == ARPHRD_CSLIP6)
cfd3d7d
 	can_compress = 1;
cfd3d7d
+#endif
cfd3d7d
 
cfd3d7d
     hw = get_hwntype(hf);
cfd3d7d
     if (hw == NULL)
cfd3d7d
diff -up net-tools-1.60/lib/net-support.h.ifdef-vs-if net-tools-1.60/lib/net-support.h
cfd3d7d
--- net-tools-1.60/lib/net-support.h.ifdef-vs-if	2000-10-28 12:59:42.000000000 +0200
cfd3d7d
+++ net-tools-1.60/lib/net-support.h	2011-01-03 12:33:21.000000000 +0100
cfd3d7d
@@ -234,7 +234,7 @@ extern char afname[];
cfd3d7d
 /* this is a 2.0.36 flag from /usr/src/linux/include/linux/route.h */
cfd3d7d
 #define RTF_NOTCACHED   0x0400          /* this route isn't cached        */
cfd3d7d
 
cfd3d7d
-#ifdef HAVE_AFECONET
cfd3d7d
+#if HAVE_AFECONET
cfd3d7d
 #ifndef AF_ECONET
cfd3d7d
 #define AF_ECONET       19      /* Acorn Econet */
cfd3d7d
 #endif