diff options
author | 2011-01-01 03:22:31 +0000 | |
---|---|---|
committer | 2011-01-01 03:22:31 +0000 | |
commit | c65379a00b9361d8b2c95bca0af082e6098d0145 (patch) | |
tree | e5a809d851df73e1962c057f149dee430a14f9c9 /lib | |
parent | [Bug #17645] Add netstat(8) support for RcvbufErrors, SndbufErrors. (diff) | |
download | net-tools-c65379a00b9361d8b2c95bca0af082e6098d0145.tar.gz net-tools-c65379a00b9361d8b2c95bca0af082e6098d0145.tar.bz2 net-tools-c65379a00b9361d8b2c95bca0af082e6098d0145.zip |
Bug #17812 Fix the handling of some of the HAVE_* flags ifdef vs if. --jpa468
Diffstat (limited to 'lib')
-rw-r--r-- | lib/interface.c | 8 | ||||
-rw-r--r-- | lib/net-support.h | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/interface.c b/lib/interface.c index c9f5923..0e5e454 100644 --- a/lib/interface.c +++ b/lib/interface.c @@ -7,7 +7,7 @@ 8/2000 Andi Kleen make the list operations a bit more efficient. People are crazy enough to use thousands of aliases now. - $Id: interface.c,v 1.34 2010/01/01 06:35:30 vapier Exp $ + $Id: interface.c,v 1.35 2011-01-01 03:22:31 ecki Exp $ */ #include "config.h" @@ -37,7 +37,7 @@ #include <neteconet/ec.h> #endif -#ifdef HAVE_HWSLIP +#if HAVE_HWSLIP #include <linux/if_slip.h> #include <net/if_arp.h> #endif @@ -437,7 +437,7 @@ int if_fetch(struct interface *ife) else ife->mtu = ifr.ifr_mtu; -#ifdef HAVE_HWSLIP +#if HAVE_HWSLIP if (ife->type == ARPHRD_SLIP || ife->type == ARPHRD_CSLIP || ife->type == ARPHRD_SLIP6 || ife->type == ARPHRD_CSLIP6 || ife->type == ARPHRD_ADAPT) { @@ -682,8 +682,10 @@ void ife_print_long(struct interface *ptr) hf = ptr->type; +#if HAVE_HWSLIP if (hf == ARPHRD_CSLIP || hf == ARPHRD_CSLIP6) can_compress = 1; +#endif hw = get_hwntype(hf); if (hw == NULL) diff --git a/lib/net-support.h b/lib/net-support.h index c963fe6..2820619 100644 --- a/lib/net-support.h +++ b/lib/net-support.h @@ -237,7 +237,7 @@ extern char afname[]; /* this is a 2.0.36 flag from /usr/src/linux/include/linux/route.h */ #define RTF_NOTCACHED 0x0400 /* this route isn't cached */ -#ifdef HAVE_AFECONET +#if HAVE_AFECONET #ifndef AF_ECONET #define AF_ECONET 19 /* Acorn Econet */ #endif |