Skip to content
Snippets Groups Projects
Commit 1c27a8b3 authored by John Arbuckle's avatar John Arbuckle Committed by Anthony Liguori
Browse files

Substitute O_DSYNC with O_SYNC or O_FSYNC when needed.


Signed-off-by: default avatarJohn Arbuckle <programmingkidx@gmail.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent c76f4952
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,11 @@
/* OS X does not have O_DSYNC */
#ifndef O_DSYNC
#ifdef O_SYNC
#define O_DSYNC O_SYNC
#elif defined(O_FSYNC)
#define O_DSYNC O_FSYNC
#endif
#endif
/* Approximate O_DIRECT with O_DSYNC if O_DIRECT isn't available */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment