make dlerror state and message thread-local and dynamically-allocated
[oweals/musl.git] / src / errno / __errno_location.c
1 #include "pthread_impl.h"
2
3 int *__errno_location(void)
4 {
5         return &__pthread_self()->errno_val;
6 }