artemsen / swayimg

Image viewer for Wayland
MIT License
380 stars 31 forks source link

meson.build: link epoll-shim for non-Linux #36

Closed ekhramtsov closed 2 years ago

ekhramtsov commented 2 years ago

Subset of epoll is available on non-Linux via epoll-shim, check if epoll-shim is available and link to it.

ld: error: undefined symbol: timerfd_create
>>> referenced by window.c
>>>               swayimg.p/src_window.c.o:(create_window)

ld: error: undefined symbol: epoll_shim_close
>>> referenced by window.c
>>>               swayimg.p/src_window.c.o:(destroy_window)
>>> referenced by window.c
>>>               swayimg.p/src_window.c.o:(on_keyboard_keymap)
>>> referenced by window.c
>>>               swayimg.p/src_window.c.o:(create_buffer)
>>> referenced 1 more times

ld: error: undefined symbol: epoll_shim_poll
>>> referenced by window.c
>>>               swayimg.p/src_window.c.o:(show_window)

ld: error: undefined symbol: epoll_shim_read
>>> referenced by window.c
>>>               swayimg.p/src_window.c.o:(show_window)

ld: error: undefined symbol: timerfd_settime
>>> referenced by window.c
>>>               swayimg.p/src_window.c.o:(on_keyboard_key)
artemsen commented 2 years ago

Thanks for the patch! Could you add Signed-off-by to the commit message?