From 73b8c378f2bbfe1f59c3bfac3479f351063194a7 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 4 Oct 2023 15:21:55 +0200 Subject: nDPId event I/O fixes. * forcibly disable epoll even if available * nDPId-test event I/O selftest * CI event I/O tests Signed-off-by: Toni Uhlig --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index b3f62cb53..d74bf83b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,8 +35,11 @@ include(CheckEpoll) check_epoll(HAS_EPOLL) if(HAS_EPOLL) - set(EPOLL_DEFS "-DENABLE_EPOLL=1") - set(EPOLL_SRCS "nio.c") + option(FORCE_POLL "Force the use of poll() instead of epoll()." OFF) + if(NOT FORCE_POLL) + set(EPOLL_DEFS "-DENABLE_EPOLL=1") + set(EPOLL_SRCS "nio.c") + endif() endif() if(NOT MATH_FUNCTION_EXISTS AND NOT NEED_LINKING_AGAINST_LIBM) @@ -416,6 +419,7 @@ message(STATUS "Cross Compilation........: ${CMAKE_CROSSCOMPILING}") message(STATUS "CMAKE_BUILD_TYPE.........: ${CMAKE_BUILD_TYPE}") message(STATUS "CMAKE_C_FLAGS............: ${CMAKE_C_FLAGS}") message(STATUS "NDPID_DEFS...............: ${NDPID_DEFS}") +message(STATUS "FORCE_POLL...............: ${FORCE_POLL}") message(STATUS "ENABLE_COVERAGE..........: ${ENABLE_COVERAGE}") message(STATUS "ENABLE_SANITIZER.........: ${ENABLE_SANITIZER}") message(STATUS "ENABLE_SANITIZER_THREAD..: ${ENABLE_SANITIZER_THREAD}") -- cgit v1.2.3