Fix bug #174 - Wrong check for fdatasync() availability.

This commit is contained in:
Jan Vidar Krey 2011-12-21 00:53:24 +01:00
parent ec3afc3a44
commit 7325b15786
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ static void log_message(struct log_data* data, const char *format, ...)
}
else
{
#ifdef _POSIX_SYNCHRONIZED_IO
#if defined _POSIX_SYNCHRONIZED_IO && _POSIX_SYNCHRONIZED_IO > 0
fdatasync(data->fd);
#else
fsync(data->fd);