1 2 3 4 5 6 7 8 9 10 11
#include <pthread.h> #include <threads.h> #include "libc.h" static int __pthread_equal(pthread_t a, pthread_t b) { return a==b; } weak_alias(__pthread_equal, pthread_equal); weak_alias(__pthread_equal, thrd_equal);