Add epoll support
This commit is contained in:
parent
ff86c7b9d1
commit
c11d73d6a8
@ -17,6 +17,7 @@ option(ENABLE_MEMMGR "Enable memory manager (default=ON)" ON)
|
||||
# set(ENABLE_MEMORY "system" CACHE STRING "Enable memory library (default=system)")
|
||||
option(ENABLE_PROFILER "Enable profiler (default=OFF)" OFF)
|
||||
option(ENABLE_EXTRA_BUILDBOT_CODE "Enable extra buildbot code (default=OFF)" OFF)
|
||||
option(ENABLE_EPOLL "Use epoll instead of select (default=OFF)" OFF)
|
||||
|
||||
|
||||
# Set a default build type if none was specified
|
||||
|
||||
@ -182,6 +182,10 @@ if(ENABLE_EXTRA_BUILDBOT_CODE)
|
||||
target_compile_definitions(common PUBLIC "-DBUILDBOT")
|
||||
endif()
|
||||
|
||||
if(ENABLE_EPOLL)
|
||||
target_compile_definitions(common PRIVATE "-DSOCKET_EPOLL")
|
||||
endif()
|
||||
|
||||
target_include_directories(common PUBLIC
|
||||
"${MYSQL_INCLUDE_DIRS}"
|
||||
"${ZLIB_INCLUDE_DIRS}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user