buildroot/package/weston/0002-add-missing-defines-for-pre-v3.17-kernels.patch
James Hilliard e672eb5c39 package/weston: bump to version 8.0.0
The autotools build system is deprecated and replaced with meson for weston.

We need to enable pango when building demo clients since it is required
by meson.

The dbus option in autotools is replaced with launcher-logind in meson
which is only ever used with systemd, so add it to the condition.

Replaced WESTON_NATIVE_BACKEND with backend-default in meson.

Added systemd dependency as launcher-logind depends on both dbus
and systemd and is the only dependency that requires dbus.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-02-03 17:25:38 +01:00

43 lines
994 B
Diff

From f43c98b23e0d7731cd8d7a9b4510c359f3df7930 Mon Sep 17 00:00:00 2001
From: James Hilliard <james.hilliard1@gmail.com>
Date: Sat, 1 Feb 2020 23:32:29 -0700
Subject: [PATCH] add missing defines for pre-v3.17 kernels
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
[Upstream status:
https://gitlab.freedesktop.org/wayland/weston/merge_requests/369]
---
shared/os-compatibility.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/shared/os-compatibility.c b/shared/os-compatibility.c
index ddc37807..26c39e67 100644
--- a/shared/os-compatibility.c
+++ b/shared/os-compatibility.c
@@ -39,6 +39,22 @@
#include "os-compatibility.h"
+#ifndef F_GET_SEALS
+#define F_GET_SEALS (1034)
+#endif
+
+#ifndef F_SEAL_SHRINK
+#define F_SEAL_SHRINK 0x0002
+#endif
+
+#ifndef F_SEAL_GROW
+#define F_SEAL_GROW 0x0004
+#endif
+
+#ifndef F_SEAL_WRITE
+#define F_SEAL_WRITE 0x0008
+#endif
+
#define READONLY_SEALS (F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_WRITE)
int
--
2.20.1