diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2013-07-24 11:25:07 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-07-24 09:46:06 -0700 |
commit | a496f0fd94276822169ff8ea9f961ac2dba7984a (patch) | |
tree | 8d0ea02bfa3af11bae4dc0c5b4a15ecb679ed443 | |
parent | 59dde88921ba506800c55f583c679630f85290e1 (diff) |
storage/posix: Fix conditional compiling for syncfs
Change-Id: Ief22e1c0f2b5074060752d70da41ae93f1028d62
BUG: 927146
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/5381
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-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 } |