aboutsummaryrefslogtreecommitdiff
path: root/fad-getad.c
diff options
context:
space:
mode:
authorguy <guy>2007-09-14 00:44:54 +0000
committerguy <guy>2007-09-14 00:44:54 +0000
commitbc365a5db9041a2b38810ab495e487d9e2df557b (patch)
treeff0447d20aa85bd015a2126f582d6d524aed5fb9 /fad-getad.c
parent6adab105af8d12d37003b0e9a8103063b940a762 (diff)
From RCB-ISIS on SourceForge: handle LynxOS, which has AF_PACKET but
puts the if_packet.h header in a different directory from Linux.
Diffstat (limited to 'fad-getad.c')
-rw-r--r--fad-getad.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fad-getad.c b/fad-getad.c
index be271136..9aca411b 100644
--- a/fad-getad.c
+++ b/fad-getad.c
@@ -34,7 +34,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/fad-getad.c,v 1.11 2005-04-08 02:01:19 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/fad-getad.c,v 1.12 2007-09-14 00:44:55 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -61,7 +61,11 @@ static const char rcsid[] _U_ =
#endif
#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
/*