summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_kern.c')
-rw-r--r--lib/libthr/thread/thr_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_kern.c b/lib/libthr/thread/thr_kern.c
index 2945cc3..7d10c5f 100644
--- a/lib/libthr/thread/thr_kern.c
+++ b/lib/libthr/thread/thr_kern.c
@@ -33,6 +33,7 @@
#include <sys/timespec.h>
#include <pthread.h>
#include <signal.h>
+#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
@@ -80,7 +81,6 @@ void
_thread_critical_exit(pthread_t pthread)
{
sigset_t set;
- int error;
/*
* restore is protected by giant. We could restore our signal state
OpenPOWER on IntegriCloud