summaryrefslogtreecommitdiff
path: root/tpool/aio_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tpool/aio_linux.cc')
-rw-r--r--tpool/aio_linux.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/tpool/aio_linux.cc b/tpool/aio_linux.cc
index d9aa8be2347..4abc2139881 100644
--- a/tpool/aio_linux.cc
+++ b/tpool/aio_linux.cc
@@ -16,7 +16,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 - 1301 USA*/
#include "tpool_structs.h"
#include "tpool.h"
-#ifdef LINUX_NATIVE_AIO
# include <thread>
# include <atomic>
# include <libaio.h>
@@ -69,7 +68,6 @@ static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev)
}
return ret;
}
-#endif
/*
@@ -84,7 +82,6 @@ static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev)
*/
namespace tpool
{
-#ifdef LINUX_NATIVE_AIO
class aio_linux final : public aio
{
@@ -187,7 +184,4 @@ aio *create_linux_aio(thread_pool *pool, int max_io)
}
return new aio_linux(ctx, pool);
}
-#else
-aio *create_linux_aio(thread_pool*, int) { return nullptr; }
-#endif
}