ports/multimedia/vapoursynth/files/patch-non-x86
Jan Beich e6ea6764d8 multimedia/vapoursynth: unbreak runtime on non-x86
vapoursynth.Error: Failed to obtain VapourSynth API pointer. System
does not support SSE2 or is the Python module and loaded core library
mismatched?
2017-10-14 22:13:21 +00:00

33 lines
863 B
Text

--- src/core/cpufeatures.c.orig 2016-02-02 16:12:42 UTC
+++ src/core/cpufeatures.c
@@ -60,7 +60,7 @@ void getCPUFeatures(CPUFeatures *cpuFeat
}
}
}
-#elif defined(VS_TARGET_OS_LINUX)
+#elif defined(VS_TARGET_OS_LINUX) && defined(__linux__)
#include <sys/auxv.h>
void getCPUFeatures(CPUFeatures *cpuFeatures) {
@@ -98,5 +98,9 @@ void getCPUFeatures(CPUFeatures *cpuFeatures) {
#endif
}
#else
-#error Do not know how to get CPU features.
+void getCPUFeatures(CPUFeatures *cpuFeatures) {
+ memset(cpuFeatures, 0, sizeof(CPUFeatures));
+
+ cpuFeatures->can_run_vs = 1;
+}
#endif
--- src/core/cpufeatures.h.orig 2016-02-02 16:12:42 UTC
+++ src/core/cpufeatures.h
@@ -51,8 +51,6 @@ typedef struct CPUFeatures {
char efp_double;
char dfp;
char vsx;
-#else
-#error No VS_TARGET_CPU_* defined/handled!
#endif
} CPUFeatures;