projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix search past the end of haystack in memmem
[musl]
/
src
/
errno
/
__errno_location.c
diff --git
a/src/errno/__errno_location.c
b/src/errno/__errno_location.c
index
3e92d7c
..
8419107
100644
(file)
--- a/
src/errno/__errno_location.c
+++ b/
src/errno/__errno_location.c
@@
-3,6
+3,6
@@
int *__errno_location(void)
{
static int e;
- if (libc.
main_thread
) return __pthread_self()->errno_ptr;
+ if (libc.
has_thread_pointer
) return __pthread_self()->errno_ptr;
return &e;
}