summaryrefslogtreecommitdiff
path: root/lib/pthread.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pthread.in.h')
-rw-r--r--lib/pthread.in.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pthread.in.h b/lib/pthread.in.h
index 1a4f1fc587..7fcfb0b3b6 100644
--- a/lib/pthread.in.h
+++ b/lib/pthread.in.h
@@ -32,8 +32,11 @@
#ifndef _@GUARD_PREFIX@_PTHREAD_H_
#define _@GUARD_PREFIX@_PTHREAD_H_
-#include <errno.h>
+#define __need_system_stdlib_h
#include <stdlib.h>
+#undef __need_system_stdlib_h
+
+#include <errno.h>
#include <sched.h>
#include <sys/types.h>
#include <time.h>