Skip to content

Commit

Permalink
Fix ifdef typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rbost committed Jun 8, 2021
1 parent ad84b01 commit cd850fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/FindLibaio.cmake
Expand Up @@ -38,7 +38,7 @@ find_package_handle_standard_args(Libaio
LIBAIO_LIBRARY)

if(LIBAIO_FOUND)
add_compile_definitions(HAS_LIBAIO)
add_definitions(-DHAS_LIBAIO)
set(LIBAIO_LIBRARIES "${LIBAIO_LIBRARY}") # Add any dependencies here
endif()

2 changes: 1 addition & 1 deletion lib/abstractio/scheduler.cpp
Expand Up @@ -26,7 +26,7 @@ Scheduler* make_thread_pool_aio_scheduler()

Scheduler* make_default_aio_scheduler(const size_t page_size)
{
#ifdef HAS_AIO
#ifdef HAS_LIBAIO
constexpr size_t kDefaultNEvents = 128;
return make_linux_aio_scheduler(page_size, kDefaultNEvents);
#else
Expand Down

0 comments on commit cd850fd

Please sign in to comment.