summaryrefslogtreecommitdiff
path: root/source/smbd/vfs-wrap.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-04 18:44:04 +0000
committerJeremy Allison <jra@samba.org>2000-04-04 18:44:04 +0000
commit6c442d68afae4140e28b770343a900b5ce510b4a (patch)
treeec556bcfa165d3887a8c711a2fe1dfd6efa1e901 /source/smbd/vfs-wrap.c
parent7325059a0940909ddd98b32d62423700545ef87e (diff)
downloadsamba-6c442d68afae4140e28b770343a900b5ce510b4a.tar.gz
Change to vfs API. POSIX states fsync should return an int, not a void.
Jeremy.
Diffstat (limited to 'source/smbd/vfs-wrap.c')
-rw-r--r--source/smbd/vfs-wrap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/smbd/vfs-wrap.c b/source/smbd/vfs-wrap.c
index 24e45a6d24a..b9c22ef1f98 100644
--- a/source/smbd/vfs-wrap.c
+++ b/source/smbd/vfs-wrap.c
@@ -204,9 +204,13 @@ int vfswrap_rename(char *old, char *new)
return result;
}
-void vfswrap_fsync(int fd)
+int vfswrap_fsync(int fd)
{
- fsync(fd);
+#ifdef HAVE_FSYNC
+ return fsync(fd);
+#else
+ return 0;
+#endif
}
int vfswrap_stat(char *fname, SMB_STRUCT_STAT *sbuf)