aboutsummaryrefslogtreecommitdiff
path: root/cutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'cutils.c')
-rw-r--r--cutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cutils.c b/cutils.c
index 7a2234646a..2365e68d9d 100644
--- a/cutils.c
+++ b/cutils.c
@@ -124,7 +124,7 @@ int qemu_fls(int i)
*/
int qemu_fdatasync(int fd)
{
-#ifdef _POSIX_SYNCHRONIZED_IO
+#ifdef CONFIG_FDATASYNC
return fdatasync(fd);
#else
return fsync(fd);