From RCB-ISIS on SourceForge: handle LynxOS, which has AF_PACKET but
puts the if_packet.h header in a different directory from Linux.
This commit is contained in:
parent
7f5ecfb5b5
commit
6ba97bc41c
1
CREDITS
1
CREDITS
|
@ -83,6 +83,7 @@ Additional people who have contributed patches:
|
||||||
Peter Jeremy <peter.jeremy@alcatel.com.au>
|
Peter Jeremy <peter.jeremy@alcatel.com.au>
|
||||||
Phil Wood <cpw@lanl.gov>
|
Phil Wood <cpw@lanl.gov>
|
||||||
Rafal Maszkowski <rzm@icm.edu.pl>
|
Rafal Maszkowski <rzm@icm.edu.pl>
|
||||||
|
<rcb-isis@users.sourceforge.net>
|
||||||
Rick Jones <raj@cup.hp.com>
|
Rick Jones <raj@cup.hp.com>
|
||||||
Scott Barron <sb125499@ohiou.edu>
|
Scott Barron <sb125499@ohiou.edu>
|
||||||
Scott Gifford <sgifford@tir.com>
|
Scott Gifford <sgifford@tir.com>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] _U_ =
|
static const char rcsid[] _U_ =
|
||||||
"@(#) $Header: /tcpdump/master/libpcap/fad-getad.c,v 1.10.2.1 2005-04-10 18:04:49 hannes Exp $ (LBL)";
|
"@(#) $Header: /tcpdump/master/libpcap/fad-getad.c,v 1.10.2.2 2007-09-14 00:45:17 guy Exp $ (LBL)";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -61,7 +61,11 @@ static const char rcsid[] _U_ =
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AF_PACKET
|
#ifdef AF_PACKET
|
||||||
# include <linux/if_packet.h>
|
# ifdef __Lynx__
|
||||||
|
# include <netpacket/if_packet.h> /* LynxOS */
|
||||||
|
# else
|
||||||
|
# include <linux/if_packet.h> /* Linux */
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Reference in New Issue