sterror: use XPG version on GLIBC
commitf0678b77c63a9dc8aa32c781cc38bab77932669d
authorThomas Adam <thomas@xteddy.org>
Tue, 21 Sep 2021 11:01:31 +0000 (21 12:01 +0100)
committerThomas Adam <thomas.adam@smoothwall.net>
Tue, 21 Sep 2021 20:55:42 +0000 (21 21:55 +0100)
treedc95178f7054baa27860bff640ebbcb82f393926
parent7293142804d9e432cda75b24e7987b55640bcaab
sterror: use XPG version on GLIBC

It looks like autoconf 2.69 will not provide XPG strerror_r even
if the appropriate macros are set which request the XPG version.

Until this is fixed in autoconf and that version is more widely-adopted,
this approach will provide what's required.

Originally from Stefan Sperling, tweaked by me.
lib/error.c