locale.c: Use strerror_l if platform has it
authorKarl Williamson <khw@cpan.org>
Sun, 16 Jul 2017 00:18:47 +0000 (18:18 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 13 Aug 2017 04:53:11 +0000 (22:53 -0600)
commit7aaa36b196e5a478a3d1bd32506797db7cebf0b2
tree2f8e4e042a49b6061260a29d1350636449251805
parent52770946b48e2fbf46e592f4c7273c83e949d89e
locale.c: Use strerror_l if platform has it

strerror_l makes the my_strerror function trivial, as it doesn't have to
worry about critical sections, etc.  Even on unthreaded perls, it avoids
having to change the current locale, and then change it back.
locale.c