libdwfl: use GNU strerror_r only when available.
authorÉrico Rolim <erico.erc@gmail.com>
Tue, 2 Feb 2021 00:16:56 +0000 (21:16 -0300)
committerMark Wielaard <mark@klomp.org>
Fri, 5 Feb 2021 14:36:25 +0000 (15:36 +0100)
commit8db222e36ae777e6aec8c61c616838a86258e99f
treee626106aa1745aabfb1df3a135f4dcf24caf8aa3
parenteb922a1b8f3a7b1d9740bc789fdf499637ded111
libdwfl: use GNU strerror_r only when available.

Some C libraries don't provide the GNU version of strerror_r, only the
XSI-compliant one. We use the GNU version when available, since it fits
the code better, and otherwise use the XSI-compliant one.

https://sourceware.org/bugzilla/show_bug.cgi?id=21010

Signed-off-by: Érico Rolim <erico.erc@gmail.com>
ChangeLog
configure.ac
libdwfl/ChangeLog
libdwfl/dwfl_error.c