<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Sep 12, 2015 at 2:04 PM, Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net" target="_blank">remi@remlab.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le 2015-09-12 20:23, Sean McGovern a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We're not actually providing an implementation here.<br>
---<br>
include/vlc_fixups.h | 2 ++<br>
1 file changed, 2 insertions(+)<br>
<br>
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h<br>
index 305de87..2c3ed52 100644<br>
--- a/include/vlc_fixups.h<br>
+++ b/include/vlc_fixups.h<br>
@@ -236,6 +236,7 @@ int posix_memalign (void **, size_t, size_t);<br>
<br>
/* locale.h */<br>
#ifndef HAVE_USELOCALE<br>
+#include <errno.h><br>
#define LC_ALL_MASK 0<br>
#define LC_NUMERIC_MASK 0<br>
#define LC_MESSAGES_MASK 0<br>
@@ -253,6 +254,7 @@ static inline void freelocale(locale_t loc)<br>
static inline locale_t newlocale(int mask, const char * locale,<br>
locale_t base)<br>
{<br>
(void)mask; (void)locale; (void)base;<br>
+ errno = ENOSYS;<br>
</blockquote>
<br></span>
That seems fine... but:<br>
1) While errno is in ISO C, I am not sure ENOSYS is portable.<br>
2) The VLC build is screwed if it uses this code anyway. Floating point numbers serialization/deserialization especially.</blockquote><div><br></div><div>This patch is admittedly frivolous. Feel free to discard.</div><div><br></div><div>-- Sean McG. </div></div></div></div>