aports

Custom Alpine Linux aports

git clone git://git.lin.moe/aports.git

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