summaryrefslogtreecommitdiff
path: root/cutils.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-20 06:56:26 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-20 06:56:26 +0000
commit5f6b9e8fd5b9516170e582d9b6c27c98519a8031 (patch)
tree2b9b054a84cf329bf1fa28167d5ecfffa44e8ad2 /cutils.c
parentcdd0935cbd345364fc6265feaa5814790947b7f9 (diff)
Probe for fdatasync()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
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 7a2234646..2365e68d9 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);