1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-12 02:59:08 +00:00

Add missing Wayland dependency on BSDs (#1349)

src/display-wayland.cc:38:10: fatal error: 'sys/epoll.h' file not found
 #include <sys/epoll.h>
          ^~~~~~~~~~~~~

ld: error: undefined symbol: epoll_create1
>>> referenced by display-wayland.cc
>>>               src/CMakeFiles/conky.dir/display-wayland.cc.o:(conky::display_output_wayland::initialize())

ld: error: undefined symbol: epoll_ctl
>>> referenced by display-wayland.cc
>>>               src/CMakeFiles/conky.dir/display-wayland.cc.o:(conky::display_output_wayland::main_loop_wait(double))

ld: error: undefined symbol: epoll_wait
>>> referenced by display-wayland.cc
>>>               src/CMakeFiles/conky.dir/display-wayland.cc.o:(conky::display_output_wayland::main_loop_wait(double))
This commit is contained in:
Jan Beich 2022-12-27 13:04:58 +00:00 committed by GitHub
parent 7d93cbcf09
commit 3fb6534eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,6 +370,12 @@ if(BUILD_WAYLAND)
message(FATAL_ERROR "Unable to find wayland-scanner and xdg-shell protocol")
endif(Wayland_FOUND AND wayland-protocols_FOUND)
if(OS_DARWIN OR OS_DRAGONFLY OR OS_FREEBSD OR OS_NETBSD OR OS_OPENBSD)
pkg_check_modules(EPOLL REQUIRED epoll-shim)
set(conky_libs ${conky_libs} ${EPOLL_LIBRARIES})
set(conky_includes ${conky_includes} ${EPOLL_INCLUDE_DIRS})
endif(OS_DARWIN OR OS_DRAGONFLY OR OS_FREEBSD OR OS_NETBSD OR OS_OPENBSD)
pkg_check_modules(PANGOCAIRO pangocairo)
set(conky_libs ${conky_libs} ${PANGOCAIRO_LIBRARIES})
set(conky_includes ${conky_includes} ${PANGOCAIRO_INCLUDE_DIRS})