diff --git a/srcpkgs/kwin/patches/musl.patch b/srcpkgs/kwin/patches/musl.patch index 2751e77e10d..4d86750a9cb 100644 --- a/srcpkgs/kwin/patches/musl.patch +++ b/srcpkgs/kwin/patches/musl.patch @@ -1,4 +1,4 @@ ---- 3rdparty/xcursor.c 2020-09-19 14:34:54.765245866 +0200 +--- src/3rdparty/xcursor.c 2020-09-19 14:34:54.765245866 +0200 +++ - 2020-09-19 14:35:18.599411888 +0200 @@ -27,6 +27,7 @@ #include diff --git a/srcpkgs/kwin/patches/posix-sockaddr.patch b/srcpkgs/kwin/patches/posix-sockaddr.patch new file mode 100644 index 00000000000..06cce6aa0a2 --- /dev/null +++ b/srcpkgs/kwin/patches/posix-sockaddr.patch @@ -0,0 +1,19 @@ +--- src/helpers/wayland_wrapper/wl-socket.c ++++ src/helpers/wayland_wrapper/wl-socket.c +@@ -8,6 +8,7 @@ + SPDX-License-Identifier: GPL-2.0-or-later + */ + ++#define _BSD_SOURCE + #include + #include + #include +@@ -155,7 +156,7 @@ struct wl_socket *wl_socket_create() + s->fd = socket(PF_LOCAL, SOCK_STREAM, 0); + + int size = SUN_LEN(&s->addr); +- int ret = bind(s->fd, &s->addr, size); ++ int ret = bind(s->fd, (struct sockaddr*)&s->addr, size); + if (ret < 0) { + goto fail; + } diff --git a/srcpkgs/kwin/template b/srcpkgs/kwin/template index 24fee095ca3..4234b682a06 100644 --- a/srcpkgs/kwin/template +++ b/srcpkgs/kwin/template @@ -17,6 +17,7 @@ license="GPL-2.0-or-later" homepage="https://invent.kde.org/plasma/kwin" distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz" checksum=5a044450ffdc1610a73d5db3f3f50d2513de930f4be5c167da703cc7d23abc0c +patch_args=-Np1 build_options="pipewire"