From 822f0efb5fb78494b536881abf8984c2e52dbd47 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 27 Mar 2005 02:45:03 +0000 Subject: If we don't get a declaration of ether_hostton() by including , try . --- nametoaddr.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'nametoaddr.c') diff --git a/nametoaddr.c b/nametoaddr.c index bffcf7e..7a83011 100644 --- a/nametoaddr.c +++ b/nametoaddr.c @@ -24,7 +24,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.75 2005-03-26 23:07:51 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.76 2005-03-27 02:45:03 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -53,6 +53,10 @@ static const char rcsid[] _U_ = #ifndef WIN32 #ifdef HAVE_ETHER_HOSTTON +/* + * XXX - do we need any of this if doesn't declare + * ether_hostton()? + */ #ifdef HAVE_NETINET_IF_ETHER_H struct mbuf; /* Squelch compiler warnings on some platforms for */ struct rtentry; /* declarations in */ @@ -60,6 +64,9 @@ struct rtentry; /* declarations in */ #include #endif /* HAVE_NETINET_IF_ETHER_H */ #endif /* HAVE_ETHER_HOSTTON */ +#ifdef NETINET_ETHER_H_DECLARES_ETHER_HOSTON +#include +#endif /* NETINET_ETHER_H_DECLARES_ETHER_HOSTON */ #include #include #endif /* WIN32 */ -- cgit v1.2.3