$NetBSD: patch-ca,v 1.1 2015/10/25 10:52:24 wiz Exp $ on NetBSD-current, just define "uselocale", nothing else fixes build --- include/vlc_fixups.h.orig 2013-08-23 11:39:38.000000000 +0000 +++ include/vlc_fixups.h @@ -210,14 +210,26 @@ int unsetenv (const char *); /* locale.h */ #ifndef HAVE_USELOCALE +#ifdef __NetBSD__ +#include +#if __NetBSD_Version__ >= 699002300 +/* NetBSD-current has locale_t but no uselocale */ +#define NetBSD_LOCALE_HACK +#endif +#endif +#ifdef NetBSD_LOCALE_HACK +#include +#else #define LC_NUMERIC_MASK 0 #define LC_MESSAGES_MASK 0 typedef void *locale_t; +#endif static inline locale_t uselocale(locale_t loc) { (void)loc; return NULL; } +#ifndef NetBSD_LOCALE_HACK static inline void freelocale(locale_t loc) { (void)loc; @@ -228,6 +240,7 @@ static inline locale_t newlocale(int mas return NULL; } #endif +#endif /* Alignment of critical static data structures */ #ifdef ATTRIBUTE_ALIGNED_MAX