From 8af21cb8cb21ec3b62ca9e9b7df3f889392279df Mon Sep 17 00:00:00 2001 From: Alexander Galanin Date: Sat, 8 Dec 2018 23:51:11 +0300 Subject: [PATCH] epoll() is absent on AIX --- Foundation/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt index ace0b186d..da386c53a 100644 --- a/Foundation/CMakeLists.txt +++ b/Foundation/CMakeLists.txt @@ -156,6 +156,9 @@ else() elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") target_compile_definitions(Foundation PUBLIC POCO_HAVE_FD_POLL) target_link_libraries(Foundation PUBLIC pthread ${CMAKE_DL_LIBS} rt) + elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "AIX") + target_compile_definitions(Foundation PUBLIC _XOPEN_SOURCE=500 POCO_HAVE_FD_POLL) + target_link_libraries(Foundation PUBLIC pthread ${CMAKE_DL_LIBS} rt) else() target_compile_definitions(Foundation PUBLIC _XOPEN_SOURCE=500 POCO_HAVE_FD_EPOLL) target_link_libraries(Foundation PUBLIC pthread ${CMAKE_DL_LIBS} rt)