diff options
author | bje <bje> | 1998-07-24 12:09:32 +0000 |
---|---|---|
committer | bje <bje> | 1998-07-24 12:09:32 +0000 |
commit | e014e52e7c0bab89204339f0dc98c110ae48715b (patch) | |
tree | e005b5ad4c4670dea578dd99164c2004871add4b | |
parent | 44a56b7d9a229b18b9f9886888eb344ee3f1ff99 (diff) |
Minor #include and #ifdef fixes.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | create.c | 3 | ||||
-rw-r--r-- | pthread.h | 4 |
3 files changed, 9 insertions, 3 deletions
@@ -10,10 +10,9 @@ * create.c: #include <string.h> to get a prototype for memcpy(). (pthread_create): New threads inherit their creator's signal - mask. Copy the signal mask to the new thread structure. - + mask. Copy the signal mask to the new thread structure if we know + about signals. - Fri Jul 24 16:33:17 1998 Ross Johnson <rpj@swan.canberra.edu.au> * fork.c (pthread_atfork): Add all the necessary push calls. @@ -86,7 +86,10 @@ pthread_create(pthread_t *thread, attr_copy->canceltype = attr->canceltype; attr_copy->detached = attr->detached; attr_copy->priority = attr->priority; + +#if HAVE_SIGSET_T memcpy(attr_copy.sigmask, attr.sigmask, sizeof(sigset_t)); +#endif /* HAVE_SIGSET_T */ } /* Start running, not suspended. */ @@ -22,6 +22,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef _PTHREADS_H #define _PTHREADS_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* HAVE_CONFIG_H */ + #ifdef HAVE_SIGNAL_H #include <signal.h> #endif /* HAVE_SIGNAL_H */ |