diff mbox series

[meta-gnome] libnwck/libnwck3: use time_t to avoid build failure

Message ID 20250908091619.1134645-1-Qi.Chen@windriver.com
State Under Review
Headers show
Series [meta-gnome] libnwck/libnwck3: use time_t to avoid build failure | expand

Commit Message

ChenQi Sept. 8, 2025, 9:16 a.m. UTC
From: Chen Qi <Qi.Chen@windriver.com>

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 <Qi.Chen@windriver.com>
---
 ...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 mbox series

Patch

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 <koen@dominion.thruhere.net>
 
 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 <changqing.li@windriver.com>
 
@@ -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;