Skip to content

Commit

Permalink
freebsd update
Browse files Browse the repository at this point in the history
  • Loading branch information
milgra committed Dec 29, 2022
1 parent b16db28 commit 72b10a4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
30 changes: 17 additions & 13 deletions src/kinetic_ui/ku_connector_wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
#include "xdg-output-unstable-v1-client-protocol.h"
#include "xdg-shell-client-protocol.h"

#ifdef __FreeBSD__
#include <sys/epoll.h>
#endif

#define MAX_MONITOR_NAME_LEN 255

struct monitor_info
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 72b10a4

Please sign in to comment.