summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2025-08-22 00:43:07 +0200
committerSteve Sakoman <steve@sakoman.com>2025-09-01 08:30:56 -0700
commit225f4064f38aaf122e456c94bf9cde90bba1c97e (patch)
treeae2b440effd63a4472f4e2479d8c6456666a774a /meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch
parent41e1323758aef317237a457d897334184e9ea364 (diff)
downloadpoky-225f4064f38aaf122e456c94bf9cde90bba1c97e.tar.gz
dbus-glib: fix build with gcc-15
(From OE-Core rev: 6c546567adc84667fc76d777b02fc78e9c472f51) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch')
-rw-r--r--meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch b/meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..bf3fcd5b86
--- /dev/null
+++ b/meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch
@@ -0,0 +1,37 @@
1From 8c32bc9fa67513f46199bc31498dc1fecbb611bb Mon Sep 17 00:00:00 2001
2From: Simon McVittie <smcv@collabora.com>
3Date: Thu, 13 Mar 2025 14:19:28 +0000
4Subject: [PATCH] dbus-gvalue: Avoid using the reserved word 'bool'
5
6This is reserved in C23 for the equivalent of `<stdbool.h>`.
7
8Bug-Debian: https://bugs.debian.org/1096507
9Signed-off-by: Simon McVittie <smcv@collabora.com>
10Upstream-Status: Backport [https://gitlab.freedesktop.org/dbus/dbus-glib/-/commit/8c32bc9fa67513f46199bc31498dc1fecbb611bb]
11igned-off-by: Martin Jansa <martin.jansa@gmail.com>
12---
13 dbus/dbus-gvalue.c | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16diff --git a/dbus/dbus-gvalue.c b/dbus/dbus-gvalue.c
17index 534e90a..788e360 100644
18--- a/dbus/dbus-gvalue.c
19+++ b/dbus/dbus-gvalue.c
20@@ -545,11 +545,11 @@ demarshal_basic (DBusGValueMarshalCtx *context,
21 {
22 case DBUS_TYPE_BOOLEAN:
23 {
24- dbus_bool_t bool;
25+ dbus_bool_t b;
26 if (!G_VALUE_HOLDS (value, G_TYPE_BOOLEAN))
27 goto invalid_type;
28- dbus_message_iter_get_basic (iter, &bool);
29- g_value_set_boolean (value, bool);
30+ dbus_message_iter_get_basic (iter, &b);
31+ g_value_set_boolean (value, b);
32 return TRUE;
33 }
34 case DBUS_TYPE_BYTE:
35--
36GitLab
37