projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix crashes in x32 __tls_get_addr
[musl]
/
src
/
errno
/
__errno_location.c
diff --git
a/src/errno/__errno_location.c
b/src/errno/__errno_location.c
index
0a220b6
..
7172a1b
100644
(file)
--- a/
src/errno/__errno_location.c
+++ b/
src/errno/__errno_location.c
@@
-1,11
+1,6
@@
-#include <errno.h>
-#include "libc.h"
-
-#undef errno
-int errno;
+#include "pthread_impl.h"
int *__errno_location(void)
{
- if (libc.errno_location) return libc.errno_location();
- return &errno;
+ return &__pthread_self()->errno_val;
}