$NetBSD$

--- src/pcaputil.c.orig	2006-06-06 19:44:41.000000000 +0000
+++ src/pcaputil.c
@@ -64,7 +64,7 @@ pcap_open(char *device)
 	if ((pcap = pcap_open_live(device, 31337, 1, PCAP_TIMEOUT, ebuf)) == NULL)
 		return (NULL);
 	
-#ifdef BSD
+#if defined(BSD) && defined(BIOCIMMEDIATE)
 	{
 		int n = 1;
 
