projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix mrand48/jrand48 return value on 64-bit archs
[oweals/musl.git]
/
src
/
errno
/
__errno_location.c
diff --git
a/src/errno/__errno_location.c
b/src/errno/__errno_location.c
index a0185780c531cc2a21edf9b0d059eac1b4c6c071..7172a1be39dbb1caf86715904552389083e2061b 100644
(file)
--- a/
src/errno/__errno_location.c
+++ b/
src/errno/__errno_location.c
@@
-1,9
+1,6
@@
-#include <errno.h>
-#include "libc.h"
+#include "pthread_impl.h"
int *__errno_location(void)
{
- static int e;
- if (libc.errno_location) return libc.errno_location();
- return &e;
+ return &__pthread_self()->errno_val;
}