aboutsummaryrefslogtreecommitdiffstats
path: root/nametoaddr.c
diff options
context:
space:
mode:
authorguy <guy>2005-04-20 11:12:36 +0000
committerguy <guy>2005-04-20 11:12:36 +0000
commiteeaf96fb94945e2b268e2f1f41dbdd191bf688d9 (patch)
tree14040fe5b914b4219811ac198cfb72bf84d13095 /nametoaddr.c
parent24c3633894e5d6f7bc38dc71827991720788be09 (diff)
Some systems (*cough*Irix*cough) not only don't declare
"ether_hostton()" but don't even declare "struct ether_addr"; on those systems, declare "struct ether_addr".
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nametoaddr.c b/nametoaddr.c
index caaa459..e96360e 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.79 2005-04-20 10:37:32 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.80 2005-04-20 11:12:36 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -458,6 +458,11 @@ pcap_ether_hostton(const char *name)
#else
#if !defined(HAVE_DECL_ETHER_HOSTTON) || !HAVE_DECL_ETHER_HOSTTON
+#ifndef HAVE_STRUCT_ETHER_ADDR
+struct ether_addr {
+ unsigned char ether_addr_octet[6];
+};
+#endif
extern int ether_hostton(const char *, struct ether_addr *);
#endif