* libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems which

do not provide it.
This commit is contained in:
Christopher Faylor 2012-08-23 04:19:59 +00:00
parent 85bf7fcf56
commit 918ed39f09
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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':