projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
move __memalign declaration to malloc_impl.h
[musl]
/
src
/
errno
/
__errno_location.c
diff --git
a/src/errno/__errno_location.c
b/src/errno/__errno_location.c
index
49654ef
..
ad9f924
100644
(file)
--- a/
src/errno/__errno_location.c
+++ b/
src/errno/__errno_location.c
@@
-1,8
+1,7
@@
+#include <errno.h>
#include "pthread_impl.h"
int *__errno_location(void)
{
- static int e;
- if (libc.has_thread_pointer) return &__pthread_self()->errno_val;
- return &e;
+ return &__pthread_self()->errno_val;
}