summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-09-13 16:16:56 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-09-13 16:16:56 +0000
commit1f5ae88c2684e44a679c8989ef332af3fc865544 (patch)
tree1e5aa3f9e832b061d7966bafd50624205b554016 /perl.h
parent88d7a19bf96d2396483f674c643f50b1079d8cda (diff)
downloadperl-1f5ae88c2684e44a679c8989ef332af3fc865544.tar.gz
Scan always for <pthread.h>.
p4raw-id: //depot/cfgperl@4141
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 21b8e66f57..7b091719ef 100644
--- a/perl.h
+++ b/perl.h
@@ -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;