cf3386e4de3cec127ec748b50d4d8b45c42abade
[openwrt/staging/jow.git] / tools / 7z / patches / 7-zip-musl.patch
1 --- a/C/CpuArch.c
2 +++ b/C/CpuArch.c
3 @@ -421,8 +421,6 @@ BoolInt CPU_IsSupported_AES (void) { ret
4
5 #ifdef USE_HWCAP
6
7 -#include <asm/hwcap.h>
8 -
9 #define MY_HWCAP_CHECK_FUNC_2(name1, name2) \
10 BoolInt CPU_IsSupported_ ## name1() { return (getauxval(AT_HWCAP) & (HWCAP_ ## name2)) ? 1 : 0; }
11
12 --- a/C/Threads.c
13 +++ b/C/Threads.c
14 @@ -257,7 +257,7 @@ WRes Thread_Create_With_CpuSet(CThread *
15 */
16
17 // ret2 =
18 - pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);
19 + //pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);
20 // if (ret2) ret = ret2;
21 #endif
22 }
23 @@ -267,14 +267,12 @@ WRes Thread_Create_With_CpuSet(CThread *
24 if (!ret)
25 {
26 p->_created = 1;
27 - /*
28 if (cpuSet)
29 {
30 // ret2 =
31 pthread_setaffinity_np(p->_tid, sizeof(*cpuSet), cpuSet);
32 // if (ret2) ret = ret2;
33 }
34 - */
35 }
36 }
37 // ret2 =
38 --- a/C/Threads.h
39 +++ b/C/Threads.h
40 @@ -19,6 +19,7 @@
41 #endif
42
43 #include <pthread.h>
44 +#include <sched.h>
45
46 #endif
47
48 --- a/CPP/Windows/SystemInfo.cpp
49 +++ b/CPP/Windows/SystemInfo.cpp
50 @@ -36,9 +36,6 @@
51 #endif
52 */
53
54 -#ifdef MY_CPU_ARM_OR_ARM64
55 -#include <asm/hwcap.h>
56 -#endif
57 #endif
58
59 #ifdef __linux__