summaryrefslogtreecommitdiff
path: root/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'errno.c')
-rw-r--r--errno.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/errno.c b/errno.c
index 1a7957c..78aa920 100644
--- a/errno.c
+++ b/errno.c
@@ -74,7 +74,7 @@ _errno (void)
pthread_t self;
int *result;
- if ((self = pthread_self ()) == NULL)
+ if ((self = pthread_self ()).p == NULL)
{
/*
* Yikes! unable to allocate a thread!