bugfix to a bug reported by Ian Schorr:
[obnox/wireshark/wip.git] / ringbuffer.c
index 85fb5e2e6596f5892c5c4273ca41411b4a0edf2e..93d42018480cf6055441d29e9df0651f6d9f5fe8 100644 (file)
@@ -1,7 +1,7 @@
 /* ringbuffer.c
  * Routines for packet capture windows
  *
- * $Id: ringbuffer.c,v 1.11 2004/06/29 20:51:26 ulfl Exp $
+ * $Id: ringbuffer.c,v 1.12 2004/06/30 06:58:57 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
 #include "wiretap/wtap.h"
 #include "ringbuffer.h"
 
+/* Win32 needs the O_BINARY flag for open() */
+#ifndef O_BINARY
+#define O_BINARY       0
+#endif
+
 /* Ringbuffer file structure */
 typedef struct _rb_file {
   gchar                *name;