$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 );