Skip to contentSkip to conversation

libnwck/libnwck3: use time_t to avoid build failure

PATCH New [email protected] 1 participant 1 message Sep 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libnwck/libnwck3: use time_t to avoid build failure

From: Chen Qi <[email protected]>

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.

---
 ...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(-)
meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch +2 -2
index 0328202f1b..f16f3e1d97 100644
@@ -23,7 +23,7 @@ Upstream-Status: Inappropriate [oe-specific]
 Signed-off-by: Koen Kooi <[email protected]>
 
 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 <[email protected]>
 
@@ -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;
  
meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch +1 -1
index 4e23f613aa..d9ca1f0cd9 100644
@@ -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;
  
Signature · 1 line
2.49.0