kwin: fix build

Added src/ to add patch because it's in kwin's master.
This commit is contained in:
Đoàn Trần Công Danh 2021-02-24 07:50:18 +07:00
parent 313afd12f9
commit 0c79080779
3 changed files with 21 additions and 1 deletions

View file

@ -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 <stdio.h>

View file

@ -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 <assert.h>
#include <errno.h>
#include <fcntl.h>
@@ -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;
}

View file

@ -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"