Skip to content

Commit c27139a

Browse files
committed
TCP input: Use libepoll-shim on BSD systems
1 parent ec301c6 commit c27139a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/plugins/input/tcp/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ add_library(tcp-input MODULE
55
config.h
66
)
77

8+
if (CMAKE_HOST_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_HOST_SYSTEM_NAME STREQUAL "OpenBSD")
9+
find_package(LibEpollShim REQUIRED)
10+
include_directories(
11+
${LIBEPOLLSHIM_INCLUDE_DIRS}
12+
)
13+
target_link_libraries(tcp-input
14+
${LIBEPOLLSHIM_LIBRARIES}
15+
)
16+
endif()
17+
818
install(
919
TARGETS tcp-input
1020
LIBRARY DESTINATION "${INSTALL_DIR_LIB}/ipfixcol2/"

0 commit comments

Comments
 (0)