On Sun, Jul 17, 2011 at 11:48 AM, Patrick Matthäi <[email protected]> wrote: > I can confirm, that everything works with the following patch:
This is the variant of that patch that I committed: commit aa53c5fc401cb09a3cd952aaeeaa5e9bc975ae7e Author: Dan Dennedy <[email protected]> Date: Fri Jul 22 10:26:20 2011 -0700 Fix build on Debian kfreebsd. diff --git a/src/framework/mlt_property.c b/src/framework/mlt_property.c index 5242cf4..5f751ac 100644 --- a/src/framework/mlt_property.c +++ b/src/framework/mlt_property.c @@ -354,7 +354,7 @@ double mlt_property_get_double_l( mlt_property self, locale_t locale ) return ( double )self->prop_position; else if ( self->types & mlt_prop_int64 ) return ( double )self->prop_int64; -#if defined(__linux__) || defined(__DARWIN__) +#if defined(__GLIBC__) || defined(__DARWIN__) else if ( locale && ( self->types & mlt_prop_string ) && self->prop_string ) return strtod_l( self->prop_string, NULL, locale ); #endif @@ -502,7 +502,7 @@ char *mlt_property_get_string_l( mlt_property self, locale_t locale ) // Save the current locale #if defined(__DARWIN__) const char *localename = querylocale( LC_NUMERIC, locale ); -#elif defined(__linux__) +#elif defined(__GLIBC__) const char *localename = locale->__names[ LC_NUMERIC ]; #else // TODO: not yet sure what to do on other platforms diff --git a/src/framework/mlt_property.h b/src/framework/mlt_property.h index b195a50..2f92ff7 100644 --- a/src/framework/mlt_property.h +++ b/src/framework/mlt_property.h @@ -26,7 +26,7 @@ #include "mlt_types.h" -#if defined(__linux__) || defined(__DARWIN__) +#if defined(__GLIBC__) || defined(__DARWIN__) #include <xlocale.h> #else typedef void* locale_t; ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
