diff options
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/stdio/flags.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 59dd3569c..10e7dabee 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2012-08-23 Christopher Faylor <me.cygwin2012@cgf.cx> + + * libc/stdio/flags.c (__sflags): Guard against using O_BINARY on + systems which do not provide it. + 2012-08-21 Christopher Faylor <me.cygwin2012@cgf.cx> * libc/stdio/flags.c (__sflags): Rewrite recognition of extended mode 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': |