From Michael Tuexen: treat Darwin/MacOS X like the other BSDs, as its
authorGuy Harris <guy@alum.mit.edu>
Tue, 4 Jun 2002 22:15:12 +0000 (22:15 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 4 Jun 2002 22:15:12 +0000 (22:15 -0000)
BPF, in at least some OS versions, acts like the other BPFs in some
versions of other BSDs, and doesn't work with "select()".

svn path=/trunk/; revision=5620

capture.c

index 9530df45906f1d9aad2637955677ed094b972036..f6bfc620bfc098825b5c994c9607a6ca1ac95645 100644 (file)
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
 /* capture.c
  * Routines for packet capture windows
  *
- * $Id: capture.c,v 1.175 2002/06/04 11:19:59 guy Exp $
+ * $Id: capture.c,v 1.176 2002/06/04 22:15:12 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
  * XXX - the various BSDs appear to define BSD in <sys/param.h>; we don't
  * want to include it if it's not present on this platform, however.
  */
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)
 #ifndef BSD
 #define BSD
 #endif /* BSD */
-#endif /* defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) */
+#endif /* defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) */
 
 /*
  * We don't want to do a "select()" on the pcap_t's file descriptor on