1--- pthreads/ptw32_getprocessors.c.orig	2016-05-11 20:50:47.774849703 +0200
2+++ pthreads/ptw32_getprocessors.c	2016-05-11 20:50:56.054865989 +0200
3@@ -55,6 +55,11 @@
4 int
5 ptw32_getprocessors (int *count)
6 {
7+     SYSTEM_INFO systemInfo;
8+     GetNativeSystemInfo(&systemInfo);
9+     return systemInfo.dwNumberOfProcessors;
10+#if 0
11+
12   DWORD_PTR vProcessCPUs;
13   DWORD_PTR vSystemCPUs;
14   int result = 0;
15@@ -88,4 +93,5 @@
16 #endif
17
18   return (result);
19+#endif
20 }
21--- pthreads/pthread_win32_attach_detach_np.c.orig	2016-05-11 21:08:47.988487073 +0200
22+++ pthreads/pthread_win32_attach_detach_np.c	2016-05-11 21:09:06.804511207 +0200
23@@ -70,6 +70,7 @@
24    *
25    * This should take care of any security issues.
26    */
27+#if 0
28 #if defined(__GNUC__) || _MSC_VER < 1400
29   if(GetSystemDirectory(QuserExDLLPathBuf, sizeof(QuserExDLLPathBuf)))
30   {
31@@ -97,6 +98,7 @@
32 	GetProcAddress (ptw32_h_quserex, (LPCSTR) "QueueUserAPCEx");
33 #endif
34     }
35+#endif
36
37   if (NULL == ptw32_register_cancelation)
38     {
39--- pthreads/pthread_cancel.c.orig	2016-05-11 22:43:53.653343096 +0200
40+++ pthreads/pthread_cancel.c	2016-05-11 22:54:22.110220490 +0200
41@@ -62,6 +62,7 @@
42 DWORD
43 ptw32_RegisterCancelation (PAPCFUNC unused1, HANDLE threadH, DWORD unused2)
44 {
45+#if 0
46   CONTEXT context;
47
48   context.ContextFlags = CONTEXT_CONTROL;
49@@ -69,6 +70,7 @@
50   PTW32_PROGCTR (context) = (DWORD_PTR) ptw32_cancel_self;
51   SetThreadContext (threadH, &context);
52   return 0;
53+#endif
54 }
55
56 int
57