diff --git a/test/fspp/fuse/fdatasync/testutils/FuseFdatasyncTest.cpp b/test/fspp/fuse/fdatasync/testutils/FuseFdatasyncTest.cpp index 245ab895..938239ed 100644 --- a/test/fspp/fuse/fdatasync/testutils/FuseFdatasyncTest.cpp +++ b/test/fspp/fuse/fdatasync/testutils/FuseFdatasyncTest.cpp @@ -17,7 +17,7 @@ int FuseFdatasyncTest::FdatasyncFileReturnError(const char *filename) { // This is MacOSX, which doesn't know fdatasync int retval = fcntl(fd->fd(), F_FULLFSYNC); #else - int retval = ::fdatasync(fd); + int retval = ::fdatasync(fd->fd()); #endif if (retval != -1) { return 0;