mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
Fix build with newer binutils-dev installed
It seems the PTR typedef (or macro?) has been removed from newer versions of libbfd. Resolves: https://gitlab.freedesktop.org/cairo/cairo/-/issues/581 Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
2ff9afb737
commit
24996e6ee2
1 changed files with 2 additions and 2 deletions
|
|
@ -106,10 +106,10 @@ _symtab_init (struct symtab *symtab, const char *filename)
|
|||
if (! bfd_check_format_matches (symtab->bfd, bfd_object, &matching))
|
||||
goto BAIL;
|
||||
|
||||
symcount = bfd_read_minisymbols (symtab->bfd, false, (PTR) &symtab->syms, &size);
|
||||
symcount = bfd_read_minisymbols (symtab->bfd, false, (void **) &symtab->syms, &size);
|
||||
if (symcount == 0) {
|
||||
symcount = bfd_read_minisymbols (symtab->bfd, true /* dynamic */ ,
|
||||
(PTR) &symtab->syms, &size);
|
||||
(void **) &symtab->syms, &size);
|
||||
}
|
||||
if (symcount < 0)
|
||||
goto BAIL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue