diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2025-09-08 02:16:19 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-09-08 15:25:14 -0700 |
| commit | 15a204024dcc87ab16bdd24a8c52fab5287c2e0f (patch) | |
| tree | 857966169735f5a87700c69cbb2d88ce60a3afb5 | |
| parent | bad66d976e15e05d980dcdbc8bfcdecdbd5a2e02 (diff) | |
| download | meta-openembedded-15a204024dcc87ab16bdd24a8c52fab5287c2e0f.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>
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] | |||
| 23 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | 23 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> |
| 24 | 24 | ||
| 25 | Refresh the patch | 25 | Refresh the patch |
| 26 | Don't use explicit type cast to avoid truncation, use long long for tv_sec. | 26 | Don't use explicit type cast to avoid truncation, use time_t for tv_sec. |
| 27 | 27 | ||
| 28 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 28 | Signed-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 | ||
