From: Dmitry Volyntsev Date: Wed, 4 Feb 2026 04:17:51 +0000 (-0800) Subject: Fixed PTR macro compatibility with newer BFD library. X-Git-Tag: 0.9.6~27 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=1e8e4f326a223c15116b7708272c78829cb4dbb0;p=njs.git Fixed PTR macro compatibility with newer BFD library. The deprecated PTR macro was removed in recent versions of binutils. Replaced with (void **) cast. --- diff --git a/src/njs_addr2line.c b/src/njs_addr2line.c index 279c9ad7..77891056 100644 --- a/src/njs_addr2line.c +++ b/src/njs_addr2line.c @@ -152,10 +152,10 @@ njs_read_symtab(bfd *abfd, asymbol ***syms) return 0; } - symcount = bfd_read_minisymbols(abfd, 0, (PTR) syms, &size); + symcount = bfd_read_minisymbols(abfd, 0, (void **) syms, &size); if (symcount == 0) { symcount = bfd_read_minisymbols(abfd, 1 /* dynamic */, - (PTR) syms, &size); + (void **) syms, &size); } return symcount;