void-packages/srcpkgs/mlt/patches/glibc-2.26.patch

24 lines
550 B
Diff
Raw Normal View History

2017-09-05 21:08:51 +02:00
xlocale.h is deprecated and not available in glibc-2.26
on musl there is locale.h, too
2017-08-30 14:13:10 +02:00
--- 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
2017-09-05 21:08:51 +02:00
#if defined(__GLIBC__) || defined(__APPLE__) || (__FreeBSD_version >= 900506)
2017-08-30 14:13:10 +02:00
-#include <xlocale.h>
+# if __GLIBC_MINOR__ >= 26 && !defined(__APPLE__)
+# include <locale.h>
+# else
+# include <xlocale.h>
+# endif
#else
2017-09-05 21:08:51 +02:00
-typedef char* locale_t;
+#include <locale.h>
2017-08-30 14:13:10 +02:00
#endif
2017-09-05 21:08:51 +02:00