diff --git a/local/patches/libwayland/redox.patch b/local/patches/libwayland/redox.patch index 68a5b3e08..7eb575bb7 100644 --- a/local/patches/libwayland/redox.patch +++ b/local/patches/libwayland/redox.patch @@ -36,4 +36,31 @@ +} #include #include - ++--- a/src/wayland-client.c +++++ b/src/wayland-client.c ++@@ -649,6 +649,11 @@ ++ wl_proxy_add_listener(struct wl_proxy *proxy, ++ void (**implementation)(void), void *data) ++ { +++ if (!proxy) { +++ fprintf(stderr, "FATAL: wl_proxy_add_listener(NULL) caller=%p -- returning error\n", +++ __builtin_return_address(0)); +++ return -1; +++ } ++ if (proxy->flags & WL_PROXY_FLAG_WRAPPER) ++ wl_abort("Proxy %p is a wrapper\n", proxy); ++ ++@@ -2448,6 +2453,7 @@ ++ wl_proxy_get_version(struct wl_proxy *proxy) ++ { +++ if (!proxy) return 0; ++ return proxy->version; ++ } ++ ++@@ -2566,6 +2572,7 @@ ++ wl_proxy_get_display(struct wl_proxy *proxy) ++ { +++ if (!proxy) return NULL; ++ return proxy->display; ++ } +