aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_draw.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 /gtk/proto_draw.c
parent24527148ab2dc1e052ebe3679d5277cc68bfeb47 (diff)
downloadwireshark-272a2055ab3114ba4a114f8ceb48be1d58933028.tar.gz
wireshark-272a2055ab3114ba4a114f8ceb48be1d58933028.tar.bz2
wireshark-272a2055ab3114ba4a114f8ceb48be1d58933028.zip
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 'gtk/proto_draw.c')
-rw-r--r--gtk/proto_draw.c7
1 files changed, 6 insertions, 1 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