summaryrefslogtreecommitdiff
path: root/src/thread/pthread_self.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_self.c')
-rw-r--r--src/thread/pthread_self.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/thread/pthread_self.c b/src/thread/pthread_self.c
index 5f9e6516..241a6202 100644
--- a/src/thread/pthread_self.c
+++ b/src/thread/pthread_self.c
@@ -1,6 +1,11 @@
#include "pthread_impl.h"
+#include <threads.h>
+#include "libc.h"
-pthread_t pthread_self()
+static pthread_t __pthread_self_internal()
{
return __pthread_self();
}
+
+weak_alias(__pthread_self_internal, pthread_self);
+weak_alias(__pthread_self_internal, thrd_current);