projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c46119a
)
ITS#7209 Default MDB_DSYNC = O_SYNC if no O_DSYNC
author
Hallvard Furuseth
<hallvard@openldap.org>
Tue, 17 Nov 2015 17:22:25 +0000
(18:22 +0100)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Tue, 17 Nov 2015 17:22:25 +0000
(18:22 +0100)
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
6c8f0ce
..
927c52c
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-459,10
+459,13
@@
static int mdb_mutex_failed(MDB_env *env, mdb_mutexref_t mutex, int rc);
*
* @note If O_DSYNC is undefined but exists in /usr/include,
* preferably set some compiler flag to get the definition.
- * 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