mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Probe for fdatasync()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
cdd0935cbd
commit
5f6b9e8fd5
2 changed files with 17 additions and 1 deletions
2
cutils.c
2
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue