<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 5, 2015 at 1:32 PM, Jean-Baptiste Kempf <span dir="ltr"><<a href="mailto:jb@videolan.org" target="_blank">jb@videolan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 03 Jan, Sean McGovern wrote :<br>
> On Sat, Jan 3, 2015 at 1:11 PM, Jean-Baptiste Kempf <<a href="mailto:jb@videolan.org">jb@videolan.org</a>> wrote:<br>
><br>
> > On 03 Jan, Sean McGovern wrote :<br>
> > > Solaris libc does not implement strerror_l().<br>
> ><br>
> > Weird question, I know, but why not add this to compat?<br>
> ><br>
> > With my kindest regards,<br>
> ><br>
> > --<br>
> > Jean-Baptiste Kempf<br>
> > <a href="http://www.jbkempf.com/" target="_blank">http://www.jbkempf.com/</a> - <a href="tel:%2B33%20672%20704%20734" value="+33672704734">+33 672 704 734</a><br>
> > Sent from my Electronic Device<br>
><br>
><br>
> I could do that -- I was just following the way it was done for the other<br>
> operating systems like Android and OS/2.<br>
<br>
</span>Android does it only because this is a Android-specific API, IIRC.<br>
OS/2 is a peculiar OS.<br>
<span class=""><br>
> Let me know if you prefer that I move it.<br>
<br>
</span>Yes.<br>
<br>
AC_REPLACE_FUNC is your friend.<br>
<span class="im HOEnZb"><br></span></blockquote><div><br></div><div>Further investigation shows this as being unreasonable -- the function signature for strerror_l is:</div><div><br></div><div>char *strerror_l(int errnum, locale_t loc);</div><div><br></div><div>Until POSIX 2008, the locale_t structure was non-standard and in my case, on Solaris, does not exist. Neither does newlocale().</div><div><br></div><div>Making them up would just be absurd.</div><div><br></div><div>I don't know how to proceed from here -- but now I'm thinking strerror_l() should not be assumed to be a replacement for strerror_r() given that it is not widely implemented in vendor C libraries.</div><div><br></div><div>-- Sean McG.</div></div></div></div>