]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/newlib-tumbl.git/commitdiff
* libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems which
authorChristopher Faylor <cgf@redhat.com>
Thu, 23 Aug 2012 04:19:58 +0000 (04:19 +0000)
committerChristopher Faylor <cgf@redhat.com>
Thu, 23 Aug 2012 04:19:58 +0000 (04:19 +0000)
do not provide it.

newlib/ChangeLog
newlib/libc/stdio/flags.c

index 59dd3569cb28afc361b9f4dd416871312996da71..10e7dabeee847064bb9b4df4e4d4abf2182d2b58 100644 (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
index b2e4d1666c41e9a7db05498bf1319ed701292ec1..518cc33f10ca0766eca0b002697c8a63000b2d1b 100644 (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':