From 15a204024dcc87ab16bdd24a8c52fab5287c2e0f Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Mon, 8 Sep 2025 02:16:19 -0700 Subject: [PATCH] libnwck/libnwck3: use time_t to avoid build failure The time_t type varies for 64bit and 32bit. So instead of using long long, we should just use time_t. In this way, things build for both 64bit and 32bit targets. Signed-off-by: Chen Qi Signed-off-by: Khem Raj --- ...Fix-build-issue-caused-by-OE-core-changes-to-startup.patch | 4 ++-- ...001-tasklist.c-fix-Wincompatible-pointer-types-error.patch | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch b/meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch index 0328202f1b..f16f3e1d97 100644 --- a/meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch +++ b/meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch @@ -23,7 +23,7 @@ Upstream-Status: Inappropriate [oe-specific] Signed-off-by: Koen Kooi Refresh the patch -Don't use explicit type cast to avoid truncation, use long long for tv_sec. +Don't use explicit type cast to avoid truncation, use time_t for tv_sec. Signed-off-by: Changqing Li @@ -40,7 +40,7 @@ index 7418f89..f0f30b2 100644 GList *tmp; gint64 now; - long tv_sec, tv_usec; -+ long long tv_sec; ++ time_t tv_sec; + long tv_usec; double elapsed; diff --git a/meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch b/meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch index 4e23f613aa..d9ca1f0cd9 100644 --- a/meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch +++ b/meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch @@ -32,7 +32,7 @@ index 4f0c6c4..758fc5f 100644 GList *tmp; GTimeVal now; - long tv_sec, tv_usec; -+ long long tv_sec; ++ time_t tv_sec; + long tv_usec; double elapsed;