Skip to content

Commit

Permalink
os/fs/FS.cc: condition on WITH_AIO for FreeBSD
Browse files Browse the repository at this point in the history
Signed-off-by: Willem Jan Withagen <[email protected]>
  • Loading branch information
wjwithagen committed Nov 11, 2016
1 parent c88c395 commit 7c2d2b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/os/fs/FS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -225,3 +226,4 @@ int FS::aio_queue_t::get_next_completed(int timeout_ms, aio_t **paio, int max)
}
return r;
}
#endif

0 comments on commit 7c2d2b2

Please sign in to comment.