Fix bug #174 - Wrong check for fdatasync() availability.
This commit is contained in:
parent
ec3afc3a44
commit
7325b15786
@ -186,7 +186,7 @@ static void log_message(struct log_data* data, const char *format, ...)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef _POSIX_SYNCHRONIZED_IO
|
#if defined _POSIX_SYNCHRONIZED_IO && _POSIX_SYNCHRONIZED_IO > 0
|
||||||
fdatasync(data->fd);
|
fdatasync(data->fd);
|
||||||
#else
|
#else
|
||||||
fsync(data->fd);
|
fsync(data->fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user