summary refs log tree commit diff
path: root/linuxthreads/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/errno.c')
-rw-r--r--linuxthreads/errno.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxthreads/errno.c b/linuxthreads/errno.c
index 3619aa87b6..746474860c 100644
--- a/linuxthreads/errno.c
+++ b/linuxthreads/errno.c
@@ -22,11 +22,11 @@
 int * __errno_location()
 {
   pthread_descr self = thread_self();
-  return self->p_errnop;
+  return THREAD_GETMEM (self, p_errnop);
 }
 
 int * __h_errno_location()
 {
   pthread_descr self = thread_self();
-  return self->p_h_errnop;
+  return THREAD_GETMEM (self, p_h_errnop);
 }