about summary refs log tree commit diff
path: root/src/errno/__errno_location.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/errno/__errno_location.c')
-rw-r--r--src/errno/__errno_location.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errno/__errno_location.c b/src/errno/__errno_location.c
index 3e92d7c7..84191076 100644
--- 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;
 }