mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Define O_DSYNC as O_SYNC if necessary.
O_DSYNC isn't available on OS X. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5486 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9f7965c7e9
commit
f646557804
1 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,11 @@
|
|||
#define DEBUG_BLOCK_PRINT(formatCstr, args...)
|
||||
#endif
|
||||
|
||||
/* OS X does not have O_DSYNC */
|
||||
#ifndef O_DSYNC
|
||||
#define O_SYNC
|
||||
#endif
|
||||
|
||||
/* Approximate O_DIRECT with O_DSYNC if O_DIRECT isn't available */
|
||||
#ifndef O_DIRECT
|
||||
#define O_DIRECT O_DSYNC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue