Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-08-23 08:19:59 +0400
committerChristopher Faylor <me@cgf.cx>2012-08-23 08:19:59 +0400
commit918ed39f0969caa1f92ba09c0c33952b6cd02eb8 (patch)
tree4dfc36aa10594de8552f28268e449bdf2900002e /newlib/libc/stdio/flags.c
parent85bf7fcf563a8746a1e4072ce4f37dc45d588b27 (diff)
* libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems which
do not provide it.
Diffstat (limited to 'newlib/libc/stdio/flags.c')
-rw-r--r--newlib/libc/stdio/flags.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/flags.c b/newlib/libc/stdio/flags.c
index b2e4d1666..518cc33f1 100644
--- a/newlib/libc/stdio/flags.c
+++ b/newlib/libc/stdio/flags.c
@@ -69,7 +69,9 @@ _DEFUN(__sflags, (ptr, mode, optr),
m = (m & ~O_ACCMODE) | O_RDWR;
break;
case 'b':
+#ifdef O_BINARY
m |= O_BINARY;
+#endif
break;
#ifdef __CYGWIN__
case 't':