This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new a811f0a25 Only need to include eventfd for native mode. This was using 
the wrong define anyway (#9711)
a811f0a25 is described below

commit a811f0a258f5ec4d2dd69f5e719a9e77a9b80ffd
Author: Chris McFarlen <ch...@mcfarlen.us>
AuthorDate: Wed May 17 10:07:47 2023 -0500

    Only need to include eventfd for native mode. This was using the wrong 
define anyway (#9711)
    
    Co-authored-by: Chris McFarlen <cmcfar...@apple.com>
---
 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 2fac40b8a..62433285c 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 <sys/eventfd.h>
 #endif
 
-#if AIO_MODE == AIO_MODE_NATIVE
 #define AIO_PERIOD -HRTIME_MSECONDS(10)
 #else
 

Reply via email to