blob: 86ddb4957b05a8003abc3180ca9eeec8b1db4fc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-src_framework_mlt__properties.c,v 1.2 2014/03/30 19:42:53 abs Exp $
Add conditional section for __NetBSD__
--- src/framework/mlt_properties.c.orig 2013-06-03 03:34:35.000000000 +0000
+++ src/framework/mlt_properties.c
@@ -144,7 +144,7 @@ int mlt_properties_set_lcnumeric( mlt_pr
{
property_list *list = self->local;
-#if defined(__linux__) || defined(__DARWIN__)
+#if defined(__linux__) || defined(__DARWIN__) || (defined(__NetBSD__) && defined(LC_C_LOCALE))
if ( list->locale )
freelocale( list->locale );
list->locale = newlocale( LC_NUMERIC_MASK, locale, NULL );
@@ -1396,7 +1396,7 @@ void mlt_properties_close( mlt_propertie
free( list->name[ index ] );
}
-#if defined(__linux__) || defined(__DARWIN__)
+#if defined(__linux__) || defined(__DARWIN__) || (defined(__NetBSD__) && defined(LC_C_LOCALE))
// Cleanup locale
if ( list->locale )
freelocale( list->locale );
|