Skip to content

Commit 26bb4f9

Browse files
committed
UDP input: Use libepoll-shim on BSD systems
1 parent ae27169 commit 26bb4f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/plugins/input/udp/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ add_library(udp-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(udp-input
14+
${LIBEPOLLSHIM_LIBRARIES}
15+
)
16+
endif()
17+
818
install(
919
TARGETS udp-input
1020
LIBRARY DESTINATION "${INSTALL_DIR_LIB}/ipfixcol2/"

0 commit comments

Comments
 (0)