changeset 22100:67a5341edf15

mkstemp: ensure file is opened in binary mode on Windows (bug #48326) * mkostemp-wrapper.c: Include <fcntl.h> for definition of O_BINARY option. Delete conditional definition of O_BINARY, it is always defined in gnulib's fcntl.h.
author Mike Miller <mtmiller@octave.org>
date Tue, 12 Jul 2016 17:00:51 -0700
parents 4c0f78b3c86f
children 4e770056f74a
files liboctave/wrappers/mkostemp-wrapper.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/wrappers/mkostemp-wrapper.c	Tue Jul 12 09:53:34 2016 -0700
+++ b/liboctave/wrappers/mkostemp-wrapper.c	Tue Jul 12 17:00:51 2016 -0700
@@ -28,14 +28,11 @@
 #  include "config.h"
 #endif
 
+#include <fcntl.h>
 #include <stdlib.h>
 
 #include "mkostemp-wrapper.h"
 
-#ifndef O_BINARY
-# define O_BINARY 0
-#endif
-
 int
 octave_mkostemp_wrapper (char *tmpl)
 {