git.samba.org
/
ambi
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb634e8
)
tdb: fix the build on mac os x 10.6.4.
author
Günther Deschner
<gd@samba.org>
Thu, 3 Jun 2010 17:05:43 +0000
(19:05 +0200)
committer
Günther Deschner
<gd@samba.org>
Thu, 1 Jul 2010 21:14:57 +0000
(23:14 +0200)
Guenther
lib/tdb/common/transaction.c
patch
|
blob
|
history
diff --git
a/lib/tdb/common/transaction.c
b/lib/tdb/common/transaction.c
index 304a03fa3836940197c1319eeae5ddbcb3fce823..ebf1cec5f2ff6fe837e8e19ae97ec572121c92e3 100644
(file)
--- a/
lib/tdb/common/transaction.c
+++ b/
lib/tdb/common/transaction.c
@@
-548,7
+548,11
@@
static int transaction_sync(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t
return 0;
}
+#ifdef HAVE_FDATASYNC
if (fdatasync(tdb->fd) != 0) {
+#else
+ if (fsync(tdb->fd) != 0) {
+#endif
tdb->ecode = TDB_ERR_IO;
TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_transaction: fsync failed\n"));
return -1;