From 0a1dbddea6c7f9ff58f78e146e290447d40c0d62 Mon Sep 17 00:00:00 2001 From: Chris McFarlen Date: Mon, 15 May 2023 16:35:50 -0500 Subject: [PATCH] Only need to include eventfd for native mode. This was using the wrong define anyway --- iocore/aio/AIO.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iocore/aio/AIO.cc b/iocore/aio/AIO.cc index 2fac40b8a5d..62433285c13 100644 --- a/iocore/aio/AIO.cc +++ b/iocore/aio/AIO.cc @@ -32,11 +32,12 @@ #include "P_AIO.h" -#if defined(HAVE_EVENTFD) && AIO_MODE == AIO_MODE_IO_URING +#if AIO_MODE == AIO_MODE_NATIVE + +#ifdef HAVE_EVENTFD #include #endif -#if AIO_MODE == AIO_MODE_NATIVE #define AIO_PERIOD -HRTIME_MSECONDS(10) #else