Files
2014-11-05 12:41:07 +01:00

43 lines
996 B
Plaintext

$NetBSD: patch-ca,v 1.2 2013/08/23 12:45:50 drochner 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 <sys/param.h>
+#if __NetBSD_Version__ >= 699002300
+/* NetBSD-current has locale_t but no uselocale */
+#define NetBSD_LOCALE_HACK
+#endif
+#endif
+#ifdef NetBSD_LOCALE_HACK
+#include <locale.h>
+#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