From a496f0fd94276822169ff8ea9f961ac2dba7984a Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 24 Jul 2013 11:25:07 +0530 Subject: storage/posix: Fix conditional compiling for syncfs Change-Id: Ief22e1c0f2b5074060752d70da41ae93f1028d62 BUG: 927146 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/5381 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/storage/posix/src/posix-helpers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index 0c0fdbabc..616664a3d 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 #include +#ifdef SYS_syncfs syscall (SYS_syncfs, pfd->fd); #else sync(); #endif - +#else + sync(); +#endif } -- cgit