diff options
author | guy <guy> | 2005-04-20 10:50:41 +0000 |
---|---|---|
committer | guy <guy> | 2005-04-20 10:50:41 +0000 |
commit | 23e2dec69928dd9ed0294a2802cc2a83a7cacca0 (patch) | |
tree | 233cdca3f0edf19a88dd65113f9cfdd8140fc97d /addrtoname.c | |
parent | 38a13e9304585a3e1b833be7a9faa37df1324e63 (diff) | |
download | tcpdump-23e2dec69928dd9ed0294a2802cc2a83a7cacca0.tar.gz |
If we don't have ether_ntohost(), don't bother declaring it merely
because it's not declared in a system header file, as the reason it's
not declared is that it doesn't exist.
Diffstat (limited to 'addrtoname.c')
-rw-r--r-- | addrtoname.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addrtoname.c b/addrtoname.c index dde42a8e..17c85813 100644 --- a/addrtoname.c +++ b/addrtoname.c @@ -23,7 +23,7 @@ */ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.110 2005-04-20 02:59:30 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.111 2005-04-20 10:50:41 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -42,12 +42,13 @@ struct rtentry; /* declarations in <net/if.h> */ #ifdef NETINET_ETHER_H_DECLARES_ETHER_NTOHOST #include <netinet/ether.h> #endif /* NETINET_ETHER_H_DECLARES_ETHER_NTOHOST */ -#endif /* USE_ETHER_NTOHOST */ #if !defined(HAVE_DECL_ETHER_NTOHOST) || !HAVE_DECL_ETHER_NTOHOST extern int ether_ntohost(char *, const struct ether_addr *); #endif +#endif /* USE_ETHER_NTOHOST */ + #include <pcap.h> #include <pcap-namedb.h> #include <signal.h> |