diff options
author | Jeremy Allison <jra@samba.org> | 2012-07-12 17:20:51 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-07-13 04:44:42 +0200 |
commit | 5a9ce8b94acf201ddb3d8e34dd962955284f1c5f (patch) | |
tree | fa9506cf12bfdae6986d91c2f3bceaaf643adc47 /source3 | |
parent | bf650a1b59f84f93f79d753a6dc99940772fb020 (diff) | |
download | samba-5a9ce8b94acf201ddb3d8e34dd962955284f1c5f.tar.gz samba-5a9ce8b94acf201ddb3d8e34dd962955284f1c5f.tar.bz2 samba-5a9ce8b94acf201ddb3d8e34dd962955284f1c5f.zip |
Use HAVE_FSYNC, we bothered to test for it.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 13 04:44:42 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_aio_pthread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c index 2c6121dbe5..ae5963b768 100644 --- a/source3/modules/vfs_aio_pthread.c +++ b/source3/modules/vfs_aio_pthread.c @@ -119,6 +119,7 @@ static void aio_worker(void *private_data) (const void *)pd->aiocb->aio_buf, pd->aiocb->aio_nbytes); } +#if defined(HAVE_FSYNC) if (pd->ret_size != -1 && pd->flush_write) { /* * Optimization - flush if requested. @@ -127,6 +128,7 @@ static void aio_worker(void *private_data) */ (void)fsync(pd->aiocb->aio_fildes); } +#endif } else { pd->ret_size = sys_pread(pd->aiocb->aio_fildes, (void *)pd->aiocb->aio_buf, |