Commit 3a9dc02f authored by Ondřej Surý's avatar Ondřej Surý

Use O_SYNC if O_DSYNC is not available

parent 35ea922e
......@@ -332,7 +332,11 @@ mdb_sem_wait(sem_t *sem)
* Otherwise compile with the less efficient -DMDB_DSYNC=O_SYNC.
*/
#ifndef MDB_DSYNC
#ifdef O_DSYNC
# define MDB_DSYNC O_DSYNC
#else
# define MDB_DSYNC O_SYNC
#endif
#endif
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment