summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorbje <bje>1998-10-03 02:33:24 +0000
committerbje <bje>1998-10-03 02:33:24 +0000
commit567e22fe20c050f4ebfcfed0bbbff8757b8ded47 (patch)
treeb4d1fa12faaf7dc7a3244da24c3f01df9737018f /attr.c
parentce8809431aff8535cf7872618e1de582cd37c0d0 (diff)
1998-10-03 Ben Elliston <bje@cygnus.com>
* attr.c (pthread_attr_init): Only zero out the `sigmask' member if we have the sigset_t type. * pthread.h (pthread_sigmask): Only provide if we have the sigset_t type.
Diffstat (limited to 'attr.c')
-rw-r--r--attr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/attr.c b/attr.c
index 999935f..994a2f2 100644
--- a/attr.c
+++ b/attr.c
@@ -102,7 +102,9 @@ pthread_attr_init(pthread_attr_t *attr)
#endif
attr->detachedstate = PTHREAD_CREATE_JOINABLE;
+#ifdef HAVE_SIGSET_T
memset(&(attr->sigmask), 0, sizeof(sigset_t));
+#endif /* HAVE_SIGSET_T */
/* Priority uses Win32 priority values. */
attr->priority = THREAD_PRIORITY_NORMAL;