joe: Update from 4.5 to 4.6
[termux-packages] / disabled-packages / mono / tkill.patch
1 --- ./libgc/pthread_stop_world.c 2017-01-03 15:49:34.000000000 +0530
2 +++ ../pthread_stop_world.c 2017-01-05 18:54:28.314868754 +0530
3 @@ -379,11 +379,7 @@
4 GC_printf1("Sending suspend signal to 0x%lx\n", p -> id);
5 #endif
6
7 -#ifndef PLATFORM_ANDROID
8 result = pthread_kill(p -> id, SIG_SUSPEND);
9 -#else
10 - result = android_thread_kill(p -> kernel_id, SIG_SUSPEND);
11 -#endif
12 switch(result) {
13 case ESRCH:
14 /* Not really there anymore. Possible? */
15 --- ./mono/utils/mono-threads-posix.c 2017-01-03 15:49:38.000000000 +0530
16 +++ ../mono-threads-posix.c 2017-01-05 18:57:48.313245586 +0530
17 @@ -21,10 +21,6 @@
18
19 #include <errno.h>
20
21 -#if defined(PLATFORM_ANDROID) && !defined(TARGET_ARM64) && !defined(TARGET_AMD64)
22 -#define USE_TKILL_ON_ANDROID 1
23 -#endif
24 -
25 #ifdef USE_TKILL_ON_ANDROID
26 extern int tkill (pid_t tid, int signal);
27 #endif