diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-06-30 06:58:59 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-06-30 06:58:59 +0000 |
commit | e78ed754f21e4c18cf1b6672eb5528db68d55b0d (patch) | |
tree | e35e4f58df8b9b618df0f9855582071721321781 /gtk | |
parent | f2377189b007b6348c9cda05b9ea8420d16b52a4 (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 'gtk')
-rw-r--r-- | gtk/proto_draw.c | 7 | ||||
-rw-r--r-- | gtk/rtp_analysis.c | 7 |
2 files changed, 12 insertions, 2 deletions
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 { |