diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-13 16:16:56 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-13 16:16:56 +0000 |
commit | 1f5ae88c2684e44a679c8989ef332af3fc865544 (patch) | |
tree | 1e5aa3f9e832b061d7966bafd50624205b554016 /perl.h | |
parent | 88d7a19bf96d2396483f674c643f50b1079d8cda (diff) | |
download | perl-1f5ae88c2684e44a679c8989ef332af3fc865544.tar.gz |
Scan always for <pthread.h>.
p4raw-id: //depot/cfgperl@4141
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -389,7 +389,7 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER)); /* HP-UX 10.X CMA (Common Multithreaded Architecure) insists that pthread.h must be included before all other header files. */ -#if defined(USE_THREADS) && defined(PTHREAD_H_FIRST) +#if defined(USE_THREADS) && defined(PTHREAD_H_FIRST) && defined(I_PTHREAD) # include <pthread.h> #endif @@ -1616,7 +1616,9 @@ typedef mutex_t perl_mutex; typedef condition_t perl_cond; typedef void * perl_key; # else /* Posix threads */ -# include <pthread.h> +# ifdef I_PTHREAD +# include <pthread.h> +# endif typedef pthread_t perl_os_thread; typedef pthread_mutex_t perl_mutex; typedef pthread_cond_t perl_cond; |