mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 14:25:53 +01:00
libgtop: Fix build with clang
Backport a patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
0ef6f75f4f
commit
97045ab013
|
|
@ -0,0 +1,29 @@
|
|||
From e969ac59335d3fb1cd228f8e7c4f6c2dda4fa536 Mon Sep 17 00:00:00 2001
|
||||
From: Avinash Sonawane <rootkea@gmail.com>
|
||||
Date: Mon, 20 Dec 2021 13:33:42 +0530
|
||||
Subject: [PATCH] Pass correct parameter
|
||||
|
||||
Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libgtop/-/merge_requests/35]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/daemon/main.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/daemon/main.c b/src/daemon/main.c
|
||||
index b51addf..eaee3b3 100644
|
||||
--- a/src/daemon/main.c
|
||||
+++ b/src/daemon/main.c
|
||||
@@ -222,8 +222,9 @@ handle_parent_connection (int s)
|
||||
0, NULL);
|
||||
break;
|
||||
case GLIBTOP_CMND_PROC_IO:
|
||||
+ memcpy (&pid, parameter, sizeof (pid_t));
|
||||
glibtop_get_proc_io_l
|
||||
- (server, &resp->u.data.proc_io, parameter);
|
||||
+ (server, &resp->u.data.proc_io, pid);
|
||||
do_output (s, resp, _offset_data (proc_io),
|
||||
0, NULL);
|
||||
break;
|
||||
--
|
||||
2.37.2
|
||||
|
||||
|
|
@ -6,7 +6,9 @@ inherit gnomebase lib_package gtk-doc gobject-introspection gettext upstream-ver
|
|||
|
||||
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
|
||||
|
||||
SRC_URI += "file://0001-fix-compile-error-for-cross-compile.patch"
|
||||
SRC_URI += "file://0001-fix-compile-error-for-cross-compile.patch \
|
||||
file://0001-Pass-correct-parameter.patch \
|
||||
"
|
||||
|
||||
SRC_URI[archive.sha256sum] = "78f3274c0c79c434c03655c1b35edf7b95ec0421430897fb1345a98a265ed2d4"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user