summaryrefslogtreecommitdiff
path: root/src/thread/pthread_equal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_equal.c')
-rw-r--r--src/thread/pthread_equal.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/thread/pthread_equal.c b/src/thread/pthread_equal.c
index 3e3df4fd..7c31482a 100644
--- a/src/thread/pthread_equal.c
+++ b/src/thread/pthread_equal.c
@@ -1,6 +1,11 @@
#include <pthread.h>
+#include <threads.h>
+#include "libc.h"
-int (pthread_equal)(pthread_t a, pthread_t b)
+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);