Commit | Line | Data |
---|---|---|
2b90cc3d FF |
1 | The tkill(2) function was removed from libc in NDK r11. |
2 | ||
3 | diff -u -r ../bdwgc-c861ec3d1825b5bb450d20bf9091562fa8a81a4d/pthread_stop_world.c ./pthread_stop_world.c | |
4 | --- ../bdwgc-c861ec3d1825b5bb450d20bf9091562fa8a81a4d/pthread_stop_world.c 2016-01-13 03:34:56.000000000 -0500 | |
5 | +++ ./pthread_stop_world.c 2016-03-10 07:09:03.607785056 -0500 | |
6 | @@ -450,7 +450,7 @@ | |
7 | #endif | |
8 | ||
9 | #ifdef USE_TKILL_ON_ANDROID | |
10 | - extern int tkill(pid_t tid, int sig); /* from sys/linux-unistd.h */ | |
11 | + static int tkill(pid_t tid, int sig) { return tgkill(-1, tid, sig); } | |
12 | ||
13 | static int android_thread_kill(pid_t tid, int sig) | |
14 | { |