aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/_pthreadtypes.h
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2009-03-14 20:10:14 +0000
committerDavid Schultz <das@FreeBSD.org>2009-03-14 20:10:14 +0000
commit48a3f7d9ae7a3d30f69dbef204f6e09b90dd6ce7 (patch)
treed51c3f8bea660e6f11b1b17bde360879037f75a6 /sys/sys/_pthreadtypes.h
parentea3186bda450da17f955174be09e5537f07a5e05 (diff)
downloadsrc-48a3f7d9ae7a3d30f69dbef204f6e09b90dd6ce7.tar.gz
src-48a3f7d9ae7a3d30f69dbef204f6e09b90dd6ce7.zip
Fix the visibility of several prototypes. Also move pthread_kill() and
pthread_sigmask() to signal.h. In principle, this shouldn't break anything, since they're already in signal.h on other systems, and the FreeBSD manpage says that both pthread.h and signal.h need to be included to get these functions. Add a hack to declare pthread_t in the P1003.1-2008 namespace in signal.h.
Notes
Notes: svn path=/head/; revision=189828
Diffstat (limited to 'sys/sys/_pthreadtypes.h')
-rw-r--r--sys/sys/_pthreadtypes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/_pthreadtypes.h b/sys/sys/_pthreadtypes.h
index 6337540afba9..76049ee6d8df 100644
--- a/sys/sys/_pthreadtypes.h
+++ b/sys/sys/_pthreadtypes.h
@@ -61,7 +61,10 @@ struct pthread_spinlock;
* or assignment operators for the types pthread_attr_t, pthread_cond_t,
* pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
*/
+#ifndef _PTHREAD_T_DECLARED
typedef struct pthread *pthread_t;
+#define _PTHREAD_T_DECLARED
+#endif
typedef struct pthread_attr *pthread_attr_t;
typedef struct pthread_mutex *pthread_mutex_t;
typedef struct pthread_mutex_attr *pthread_mutexattr_t;