diff options
Diffstat (limited to 'xlators/storage/posix/src/posix-helpers.c')
-rw-r--r-- | xlators/storage/posix/src/posix-helpers.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index 0c0fdbabc96..616664a3d8d 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -1260,11 +1260,14 @@ posix_fsyncer_syncfs (xlator_t *this, struct list_head *head) */ #include <sys/syscall.h> #include <unistd.h> +#ifdef SYS_syncfs syscall (SYS_syncfs, pfd->fd); #else sync(); #endif - +#else + sync(); +#endif } |