diff options
author | Andreas Jaeger <aj@suse.de> | 2012-10-22 19:59:22 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-10-22 19:59:22 +0200 |
commit | b4b4c2968ece5f95bffa6893b5d5b50e966ed40f (patch) | |
tree | 65dd9a3920953654d48baed1e18943fb21516fcd /sysdeps/unix/sysv/linux/bits | |
parent | 6fb54a225415a91050eb004d05bc62d6c3ca2b53 (diff) | |
download | glibc-b4b4c2968ece5f95bffa6893b5d5b50e966ed40f.tar.gz glibc-b4b4c2968ece5f95bffa6893b5d5b50e966ed40f.tar.xz glibc-b4b4c2968ece5f95bffa6893b5d5b50e966ed40f.zip |
Fix O_RSYNC
(O_RSYNC): Define to __O_RSYNC if it exists, otherwise to O_SYNC.
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index f0c0d7d1c7..dbd76ad649 100644 --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h @@ -135,7 +135,11 @@ 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'. */ |