mlt: fix building with glibc-2.26

This commit is contained in:
Helmut Pozimski 2017-08-30 14:13:10 +02:00 committed by Michael Gehring
parent c50081bf7d
commit a893802458
3 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,15 @@
--- src/framework/mlt_property.h.orig 2017-08-30 13:55:55.676748750 +0200
+++ src/framework/mlt_property.h 2017-08-30 13:59:27.660276105 +0200
@@ -31,7 +31,11 @@
#endif
#if defined(__GLIBC__) || defined(__DARWIN__) || (__FreeBSD_version >= 900506)
-#include <xlocale.h>
+# if __GLIBC_MINOR__ >= 26 && !defined(__APPLE__)
+# include <locale.h>
+# else
+# include <xlocale.h>
+# endif
#else
#include <locale.h>
#endif

View File

@ -0,0 +1,3 @@
mlt-0.9.8-ffmpeg3.patch
musl-locale.patch
glibc-2.26.patch

View File

@ -1,7 +1,7 @@
# Template file for 'mlt'
pkgname=mlt
version=0.9.8
revision=6
revision=7
build_style=gnu-configure
configure_args="--enable-gpl --enable-gpl3 --disable-swfdec --without-kde
--swig-languages=python"