aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--capture.c6
-rw-r--r--file.c7
-rw-r--r--gtk/proto_draw.c7
-rw-r--r--gtk/rtp_analysis.c7
-rw-r--r--mergecap.c6
-rw-r--r--ringbuffer.c7
-rw-r--r--wiretap/file_access.c7
7 files changed, 40 insertions, 7 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);
diff --git a/file.c b/file.c
index 7d2a402af8..f48fc5c95f 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.385 2004/06/29 20:51:26 ulfl Exp $
+ * $Id: file.c,v 1.386 2004/06/30 06:58:56 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -88,6 +88,11 @@
#include "tap_dfilter_dlg.h"
#include "packet-data.h"
+/* Win32 needs the O_BINARY flag for open() */
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
#ifdef HAVE_LIBPCAP
gboolean auto_scroll_live;
#endif
diff --git a/gtk/proto_draw.c b/gtk/proto_draw.c
index 0e1de84dd8..e2055289a5 100644
--- a/gtk/proto_draw.c
+++ b/gtk/proto_draw.c
@@ -1,7 +1,7 @@
/* proto_draw.c
* Routines for GTK+ packet display
*
- * $Id: proto_draw.c,v 1.106 2004/06/29 20:46:28 ulfl Exp $
+ * $Id: proto_draw.c,v 1.107 2004/06/30 06:58:58 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -71,6 +71,11 @@
#include "font_utils.h"
+/* Win32 needs the O_BINARY flag for open() */
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
#define BYTE_VIEW_WIDTH 16
#define BYTE_VIEW_SEP 8
diff --git a/gtk/rtp_analysis.c b/gtk/rtp_analysis.c
index 9654cf96f7..591bede7d8 100644
--- a/gtk/rtp_analysis.c
+++ b/gtk/rtp_analysis.c
@@ -1,7 +1,7 @@
/* rtp_analysis.c
* RTP analysis addition for ethereal
*
- * $Id: rtp_analysis.c,v 1.46 2004/06/29 20:46:28 ulfl Exp $
+ * $Id: rtp_analysis.c,v 1.47 2004/06/30 06:58:58 guy Exp $
*
* Copyright 2003, Alcatel Business Systems
* By Lars Ruoff <lars.ruoff@gmx.net>
@@ -83,6 +83,11 @@
#include <io.h> /* open/close on win32 */
#endif
+/* Win32 needs the O_BINARY flag for open() */
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
/****************************************************************************/
typedef struct column_arrows {
diff --git a/mergecap.c b/mergecap.c
index 8038e70fb4..aa31504dcd 100644
--- a/mergecap.c
+++ b/mergecap.c
@@ -1,6 +1,6 @@
/* Combine two dump files, either by appending or by merging by timestamp
*
- * $Id: mergecap.c,v 1.22 2004/06/29 20:59:23 ulfl Exp $
+ * $Id: mergecap.c,v 1.23 2004/06/30 06:58:57 guy Exp $
*
* Written by Scott Renfro <scott@renfro.org> based on
* editcap by Richard Sharpe and Guy Harris
@@ -41,6 +41,10 @@
#include <fcntl.h>
#endif
+/* Win32 needs the O_BINARY flag for open() */
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
/*
* Show the usage
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;
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index 82ea2121a4..55bdf7429a 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -1,6 +1,6 @@
/* file_access.c
*
- * $Id: file_access.c,v 1.13 2004/06/29 20:46:29 ulfl Exp $
+ * $Id: file_access.c,v 1.14 2004/06/30 06:58:59 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -207,6 +207,11 @@ wtap* wtap_open_offline(const char *filename, int *err, char **err_info,
return NULL;
}
+/* Win32 needs the O_BINARY flag for open() */
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
/* Open the file */
errno = WTAP_ERR_CANT_OPEN;
wth->fd = open(filename, O_RDONLY|O_BINARY);