aboutsummaryrefslogtreecommitdiffstats
path: root/ringbuffer.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-06-30 06:58:59 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-06-30 06:58:59 +0000
commite78ed754f21e4c18cf1b6672eb5528db68d55b0d (patch)
treee35e4f58df8b9b618df0f9855582071721321781 /ringbuffer.c
parentf2377189b007b6348c9cda05b9ea8420d16b52a4 (diff)
On at least some platforms, a #define of O_BINARY is needed even if
<fcntl.h> is included, as <fcntl.h> doesn't define it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11276 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ringbuffer.c')
-rw-r--r--ringbuffer.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ringbuffer.c b/ringbuffer.c
index 85fb5e2e65..93d4201848 100644
--- a/ringbuffer.c
+++ b/ringbuffer.c
@@ -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>
@@ -76,6 +76,11 @@
#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;