~xdavidwu/apkbuilds

ref: b832c524ea24d2cd98b22ec45cf5d1d1b4daf3b1 apkbuilds/7zip-unrar/7-zip-musl.patch -rw-r--r-- 914 bytes
b832c524Pinghao Wu 7zip-unrar: 24.09 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff -ru a/C/Threads.c b/C/Threads.c
--- a/C/Threads.c	2021-12-21 08:00:00.000000000 -0500
+++ b/C/Threads.c	2022-03-05 11:07:47.203504536 -0500
@@ -265,7 +265,7 @@
       */
 
       // ret2 =
-      pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);
+      //pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);
       // if (ret2) ret = ret2;
 #endif
     }
@@ -275,14 +275,12 @@
     if (!ret)
     {
       p->_created = 1;
-      /*
       if (cpuSet)
       {
         // ret2 =
         pthread_setaffinity_np(p->_tid, sizeof(*cpuSet), cpuSet);
         // if (ret2) ret = ret2;
       }
-      */
     }
   }
   // ret2 =
diff -ru a/C/Threads.h b/C/Threads.h
--- a/C/Threads.h	2021-12-21 08:00:00.000000000 -0500
+++ b/C/Threads.h	2022-03-05 11:07:47.203504536 -0500
@@ -29,6 +29,7 @@
 #endif
 
 #include <pthread.h>
+#include <sched.h>
 
 #endif