Probe for fdatasync()

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2009-09-20 06:56:26 +00:00
parent cdd0935cbd
commit 5f6b9e8fd5
2 changed files with 17 additions and 1 deletions

View file

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