SHA256
1
0
forked from pool/ptools
ptools/fix-32bit-cast.diff
Dirk Mueller 83052cee5a - Added fix-32bit-cast.diff which replaces a cast which is OK for
64bit targets but not for 32 bit targets to make the package
  buildable with GCC 14 on i586.

If the request is OK, please forward it to Factory too so that we can
switch the default compiler soon.  Thanks!

OBS-URL: https://build.opensuse.org/package/show/Base:System/ptools?expand=0&rev=14
2024-08-12 15:47:41 +00:00

21 lines
648 B
Diff

From: Martin Jambor <mjambor@suse.de>
Date: 2024-08-09
The pre-existing type-cast is OK for 64bit targets but not for 32 bit
targets, so this patch swaps it with what is actually used in the
corresponding data type definition.
Index: ptools-0.1/src/pbuildid.c
===================================================================
--- ptools-0.1.orig/src/pbuildid.c
+++ ptools-0.1/src/pbuildid.c
@@ -751,7 +751,7 @@ out:
mmap->l_addr = lmap->l_addr;
mmap->l_name = strdup(l_name);
- mmap->l_ld = (GElf_Dyn *)lmap->l_ld;
+ mmap->l_ld = (ElfW(Dyn) *)lmap->l_ld;
mmap->l_next = core_link_map;
mmap->l_prev = NULL;
if (core_link_map)