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:
Simon McVittie 2022-07-13 21:26:57 +01:00
parent 2ff9afb737
commit 24996e6ee2

View file

@ -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;