]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/fs/FS.cc: condition on WITH_AIO for FreeBSD 11913/head
authorWillem Jan Withagen <wjw@digiware.nl>
Fri, 11 Nov 2016 11:28:52 +0000 (12:28 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 11 Nov 2016 15:32:22 +0000 (16:32 +0100)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/os/fs/FS.cc

index d2a9f350d343f202e247eaacd3a7b0e39ce8b536..3e277c66281a202a962dd5cb2e9d83712f820812 100644 (file)
@@ -185,6 +185,7 @@ int FS::zero(int fd, uint64_t offset, uint64_t length)
 
 // ---------------
 
+#if defined(HAVE_LIBAIO)
 int FS::aio_queue_t::submit(aio_t &aio, int *retries)
 {
   // 2^16 * 125us = ~8 seconds, so max sleep is ~16 seconds
@@ -225,3 +226,4 @@ int FS::aio_queue_t::get_next_completed(int timeout_ms, aio_t **paio, int max)
   }
   return r;
 }
+#endif