]> sourceware.org Git - glibc.git/commitdiff
Fix O_RSYNC
authorAndreas Jaeger <aj@suse.de>
Mon, 22 Oct 2012 17:59:22 +0000 (19:59 +0200)
committerAndreas Jaeger <aj@suse.de>
Mon, 22 Oct 2012 17:59:22 +0000 (19:59 +0200)
 (O_RSYNC): Define to __O_RSYNC if it exists, otherwise to O_SYNC.

ChangeLog
sysdeps/unix/sysv/linux/bits/fcntl-linux.h

index 221bc542d3fa0572ca7ee7a0aacf799d78047150..a3a6d34269f47bf1061eb802c0e7f1c73e8804a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-22  Andreas Jaeger  <aj@suse.de>
+
+       * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
+       __O_RSYNC if it exists, otherwise to O_SYNC.
+
 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>
 
index f0c0d7d1c734703fe90a0360812d8ca98218b635..dbd76ad64916ebf010e4c0da4581dc10e0838ba8 100644 (file)
    since this is a superset.  */
 #if defined __USE_POSIX199309 || defined __USE_UNIX98
 # define O_DSYNC       __O_DSYNC       /* Synchronize data.  */
-# define O_RSYNC       __O_SYNC        /* Synchronize read operations.  */
+# if defined __O_RSYNC
+#  define O_RSYNC      __O_RSYNC       /* Synchronize read operations.  */
+# else
+#  define O_RSYNC      O_SYNC          /* Synchronize read operations.  */
+# endif
 #endif
 
 /* Values for the second argument to `fcntl'.  */
This page took 0.118643 seconds and 5 git commands to generate.