diff --git a/meson.build b/meson.build index 7ddb1cb..3e29179 100644 --- a/meson.build +++ b/meson.build @@ -97,6 +97,8 @@ if build_machine.system() == 'freebsd' '/usr/local/include/GLES2', '/usr/local/include/EGL', '/usr/local/include/freetype2')] + epoll = cc.find_library('epoll-shim') + wcp_dependencies += epoll else wcp_inc = [ wcp_inc, diff --git a/src/kinetic_ui/ku_connector_wayland.c b/src/kinetic_ui/ku_connector_wayland.c index d5840ac..d0397bc 100644 --- a/src/kinetic_ui/ku_connector_wayland.c +++ b/src/kinetic_ui/ku_connector_wayland.c @@ -35,6 +35,10 @@ #include "xdg-output-unstable-v1-client-protocol.h" #include "xdg-shell-client-protocol.h" +#ifdef __FreeBSD__ + #include +#endif + #define MAX_MONITOR_NAME_LEN 255 struct monitor_info @@ -712,19 +716,19 @@ wl_window_t* ku_wayland_create_eglwindow(char* title, int width, int height) EGLSurface surface; EGLConfig config; EGLint fbAttribs[] = { - EGL_SURFACE_TYPE, - EGL_WINDOW_BIT, - EGL_RENDERABLE_TYPE, - EGL_OPENGL_ES2_BIT, - EGL_RED_SIZE, - 8, - EGL_GREEN_SIZE, - 8, - EGL_BLUE_SIZE, - 8, - EGL_ALPHA_SIZE, - 8, - EGL_NONE}; + EGL_SURFACE_TYPE, + EGL_WINDOW_BIT, + EGL_RENDERABLE_TYPE, + EGL_OPENGL_ES2_BIT, + EGL_RED_SIZE, + 8, + EGL_GREEN_SIZE, + 8, + EGL_BLUE_SIZE, + 8, + EGL_ALPHA_SIZE, + 8, + EGL_NONE}; EGLint contextAttribs[] = { EGL_CONTEXT_CLIENT_VERSION, 2,