diff options
Diffstat (limited to 'source3/smbd/vfs-wrap.c')
-rw-r--r-- | source3/smbd/vfs-wrap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/smbd/vfs-wrap.c b/source3/smbd/vfs-wrap.c index 24e45a6d24..b9c22ef1f9 100644 --- a/source3/smbd/vfs-wrap.c +++ b/source3/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) |