use syscall_arg_t and __scc macro for arguments to __alt_socketcall
[musl] / src / thread / pthread_self.c
index 5f9e651..bd3bf95 100644 (file)
@@ -1,6 +1,10 @@
 #include "pthread_impl.h"
+#include <threads.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);