aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-06-30 06:58:59 +0000
committerGuy Harris <guy@alum.mit.edu>2004-06-30 06:58:59 +0000
commit272a2055ab3114ba4a114f8ceb48be1d58933028 (patch)
treee35e4f58df8b9b618df0f9855582071721321781 /capture.c
parent24527148ab2dc1e052ebe3679d5277cc68bfeb47 (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. svn path=/trunk/; revision=11276
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/capture.c b/capture.c
index f1de16baad..d1f42929f2 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.253 2004/06/29 20:51:26 ulfl Exp $
+ * $Id: capture.c,v 1.254 2004/06/30 06:58:56 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -219,6 +219,10 @@ typedef struct _loop_data {
#endif
} loop_data;
+/* Win32 needs the O_BINARY flag for open() */
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
static gboolean sync_pipe_do_capture(gboolean is_tempfile);
static gboolean sync_pipe_input_cb(gint source, gpointer user_data);