aboutsummaryrefslogtreecommitdiff
path: root/fad-getad.c
diff options
context:
space:
mode:
Diffstat (limited to 'fad-getad.c')
-rw-r--r--fad-getad.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/fad-getad.c b/fad-getad.c
index 831ddae7..02351511 100644
--- a/fad-getad.c
+++ b/fad-getad.c
@@ -61,12 +61,16 @@ static const char rcsid[] _U_ =
#endif
#ifdef AF_PACKET
-# ifdef __Lynx__
-/* LynxOS */
+# ifdef HAVE_NETPACKET_PACKET_H
+# include <netpacket/packet.h>
+# endif
+# ifdef HAVE_NETPACKET_IF_PACKET_H
# include <netpacket/if_packet.h>
-# else
-/* Linux */
+# endif
+# ifdef HAVE_LINUX_TYPES_H
# include <linux/types.h>
+# endif
+# ifdef HAVE_LINUX_IF_PACKET_H
# include <linux/if_packet.h>
# endif
#endif