On at least some platforms, a #define of O_BINARY is needed even if
[obnox/wireshark/wip.git] / mergecap.c
index 8038e70fb4d06284b4516a468c8e9e7f34c9c55a..aa31504dcdadfcea42e0e3f9a98e43be9d550cb9 100644 (file)
@@ -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
 #include <fcntl.h>
 #endif
 
+/* Win32 needs the O_BINARY flag for open() */
+#ifndef O_BINARY
+#define O_BINARY       0
+#endif
 
 /*
  * Show the usage