1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-02 08:58:33 +03:00

tdb: fix the build on mac os x 10.6.4.

Guenther
This commit is contained in:
Günther Deschner 2010-06-03 19:05:43 +02:00
parent eb634e8c7f
commit f7a3bd4fa4

View File

@ -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;