summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-04-22 16:52:46 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-04-22 16:52:46 +0000
commitcf4bfa4a4c5216e2d07a7fec4aa6487fa56003c9 (patch)
tree01419aa94d258881cbdd5c1d5c0d9a5ef75e1cf8
parent23e100abfe088d846df479ab176cba28f43a7814 (diff)
Install bits/pthreadtypes.h
And make it expose only types, not the rest of the pthread API. * Makefile (headers): Add bits/pthreadtypes.h. * sysdeps/generic/bits/pthreadtypes.h: Include <pthread/pthreadtypes.h> instead of <pthread.h>
-rw-r--r--Makefile1
-rw-r--r--sysdeps/generic/bits/pthreadtypes.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 73f90da..4bc0101 100644
--- a/Makefile
+++ b/Makefile
@@ -164,6 +164,7 @@ headers := \
\
bits/pthread.h \
bits/pthread-np.h \
+ bits/pthreadtypes.h \
bits/mutex.h \
bits/condition.h \
bits/condition-attr.h \
diff --git a/sysdeps/generic/bits/pthreadtypes.h b/sysdeps/generic/bits/pthreadtypes.h
index e5cbfd2..70368ff 100644
--- a/sysdeps/generic/bits/pthreadtypes.h
+++ b/sysdeps/generic/bits/pthreadtypes.h
@@ -24,6 +24,6 @@
#ifndef _BITS_PTHREADTYPES_H
#define _BITS_PTHREADTYPES_H 1
-#include <pthread.h>
+#include <pthread/pthreadtypes.h>
#endif /* bits/pthreadtypes.h */