summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2025-09-08 02:16:19 -0700
committerGyorgy Sarvari <skandigraun@gmail.com>2025-09-11 08:59:23 +0200
commit5e42bce992bc33e790ee153c58c5d5efbebe5b72 (patch)
tree4438ecf218738bed200d3d925456e979e81330c5
parent4a7ca620709d2d184312c2c99e50b9b763cedd83 (diff)
downloadmeta-openembedded-5e42bce992bc33e790ee153c58c5d5efbebe5b72.tar.gz
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 <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
-rw-r--r--meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch4
-rw-r--r--meta-gnome/recipes-gnome/libwnck/files/0001-tasklist.c-fix-Wincompatible-pointer-types-error.patch2
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]
23Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> 23Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
24 24
25Refresh the patch 25Refresh the patch
26Don't use explicit type cast to avoid truncation, use long long for tv_sec. 26Don't use explicit type cast to avoid truncation, use time_t for tv_sec.
27 27
28Signed-off-by: Changqing Li <changqing.li@windriver.com> 28Signed-off-by: Changqing Li <changqing.li@windriver.com>
29 29
@@ -40,7 +40,7 @@ index 7418f89..f0f30b2 100644
40 GList *tmp; 40 GList *tmp;
41 gint64 now; 41 gint64 now;
42- long tv_sec, tv_usec; 42- long tv_sec, tv_usec;
43+ long long tv_sec; 43+ time_t tv_sec;
44+ long tv_usec; 44+ long tv_usec;
45 double elapsed; 45 double elapsed;
46 46
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
32 GList *tmp; 32 GList *tmp;
33 GTimeVal now; 33 GTimeVal now;
34- long tv_sec, tv_usec; 34- long tv_sec, tv_usec;
35+ long long tv_sec; 35+ time_t tv_sec;
36+ long tv_usec; 36+ long tv_usec;
37 double elapsed; 37 double elapsed;
38 38