[cmake] move epoll detection to platform

This commit is contained in:
akallabeth 2024-04-18 21:48:29 +02:00 committed by akallabeth
parent 7ac01c5cbd
commit 5583fec47b
2 changed files with 5 additions and 5 deletions

View File

@ -202,11 +202,6 @@ if (EXPORT_ALL_SYMBOLS)
add_definitions(-DEXPORT_ALL_SYMBOLS)
endif(EXPORT_ALL_SYMBOLS)
if(FREEBSD)
find_path(EPOLLSHIM_INCLUDE_DIR NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim)
find_library(EPOLLSHIM_LIBS NAMES epoll-shim libepoll-shim HINTS /usr/local/lib)
endif()
# Compiler-specific flags
if(CMAKE_COMPILER_IS_GNUCC)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "i686")

View File

@ -100,4 +100,9 @@ if (USE_PLATFORM_DEFAULT)
set(WINPR_TIMEZONE_FILE "/var/db/zoneinfo")
endif()
add_definitions("-DWINPR_TIMEZONE_FILE=\"${WINPR_TIMEZONE_FILE}\"")
if(FREEBSD)
find_path(EPOLLSHIM_INCLUDE_DIR NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim)
find_library(EPOLLSHIM_LIBS NAMES epoll-shim libepoll-shim HINTS /usr/local/lib)
endif()
endif()