aports/community/mlt/musl.patch
2024-10-07 21:10:29 +00:00

33 lines
843 B
Diff

Fix building tests with musl libc
--- a/src/tests/test_filter/test_filter.cpp
+++ b/src/tests/test_filter/test_filter.cpp
@@ -28,7 +28,7 @@ class TestFilter : public QObject
public:
TestFilter()
{
-#if defined(__linux__) || defined(__APPLE__)
+#if defined(__GLIBC__) || defined(__APPLE__)
locale = newlocale(LC_NUMERIC_MASK, "POSIX", NULL);
#endif
Factory::init();
@@ -36,7 +36,7 @@ public:
~TestFilter()
{
-#if defined(__linux__) || defined(__APPLE__)
+#if defined(__GLIBC__) || defined(__APPLE__)
freelocale(locale);
#endif
}
--- a/src/tests/test_properties/test_properties.cpp
+++ b/src/tests/test_properties/test_properties.cpp
@@ -24,7 +24,6 @@
using namespace Mlt;
extern "C" {
-#define __APPLE__
#include <framework/mlt_animation.h>
#include <framework/mlt_property.h>
}