From 37da8c011408560eeaa74b2439192d36e16c19a4 Mon Sep 17 00:00:00 2001 From: hasso Date: Wed, 19 May 2004 11:38:40 +0000 Subject: Make it compile in NetBSD and OpenBSD. --- isisd/isis_network.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'isisd/isis_network.c') diff --git a/isisd/isis_network.c b/isisd/isis_network.c index c10aeebf..4f9af61e 100644 --- a/isisd/isis_network.c +++ b/isisd/isis_network.c @@ -24,7 +24,13 @@ #include #include #include +#ifdef GNU_LINUX #include /* the L2 protocols */ +#else +#include +#include +#endif + #include "log.h" #include "stream.h" @@ -237,12 +243,14 @@ open_bpf_dev (struct isis_circuit *circuit) zlog_warn ("failed to set BPF dev to immediate mode"); } +#ifdef BIOCSSEESENT /* * We want to see only incoming packets */ if (ioctl (fd, BIOCSSEESENT, (caddr_t)&false) < 0) { zlog_warn ("failed to set BPF dev to incoming only mode"); } +#endif /* * ...but all of them -- cgit v1.2.1