]> git.pld-linux.org Git - packages/vapoursynth.git/blob - vapoursynth-genericarch.patch
048fa27ec76c8f48c6fcdb99b9c431f03b02eeeb
[packages/vapoursynth.git] / vapoursynth-genericarch.patch
1 diff -ur vapoursynth-R48.orig/src/core/cpufeatures.cpp vapoursynth-R48/src/core/cpufeatures.cpp
2 --- vapoursynth-R48.orig/src/core/cpufeatures.cpp       2019-10-25 08:16:07.000000000 +0200
3 +++ vapoursynth-R48/src/core/cpufeatures.cpp    2019-12-14 14:11:01.285000000 +0100
4 @@ -103,6 +103,7 @@
5      }
6  }
7  #elif defined(VS_TARGET_OS_LINUX)
8 +#if defined(VS_TARGET_CPU_ARM) || defined(VS_TARGET_CPU_POWERPC)
9  #include <sys/auxv.h>
10  
11  static void doGetCPUFeatures(CPUFeatures *cpuFeatures) {
12 @@ -131,6 +132,12 @@
13  #endif
14  }
15  #else
16 +static void doGetCPUFeatures(CPUFeatures *cpuFeatures) {
17 +    memset(cpuFeatures, 0, sizeof(CPUFeatures));
18 +    cpuFeatures->can_run_vs = 1;
19 +}
20 +#endif
21 +#else
22  #warning "Do not know how to get CPU features."
23  #endif
24  
25 diff -ur vapoursynth-R48.orig/src/core/cpufeatures.h vapoursynth-R48/src/core/cpufeatures.h
26 --- vapoursynth-R48.orig/src/core/cpufeatures.h 2019-10-25 08:16:07.000000000 +0200
27 +++ vapoursynth-R48/src/core/cpufeatures.h      2019-12-14 13:40:09.419000000 +0100
28 @@ -63,8 +63,6 @@
29      char efp_double;
30      char dfp;
31      char vsx;
32 -#else
33 -#warning "No VS_TARGET_CPU_* defined/handled!"
34  #endif
35  } CPUFeatures;
36  
This page took 0.086766 seconds and 2 git commands to generate.