fix nl_langinfo table for LC_TIME era-related items
[musl] / src / errno / __errno_location.c
1 #include "pthread_impl.h"
2
3 int *__errno_location(void)
4 {
5         static int e;
6         if (libc.has_thread_pointer) return &__pthread_self()->errno_val;
7         return &e;
8 }