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>
This commit is contained in:
Pranith Kumar K 2013-07-24 11:25:07 +05:30 committed by Vijay Bellur
parent 59dde88921
commit a496f0fd94

View File

@ -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
}