summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-23 08:54:27 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-23 08:54:27 +0000
commit1feb27209aee3921894ffc1cc08027670d4240f3 (patch)
tree6b79a2ca2620a7e287d9d18cc5d660a977984bb5 /perl.h
parentfd9459bc435247011bdd5dc44ff2358cc4d1b124 (diff)
downloadperl-1feb27209aee3921894ffc1cc08027670d4240f3.tar.gz
bring in basic threads stuff under USE_ITHREADS
p4raw-id: //depot/perl@4704
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/perl.h b/perl.h
index 8a6505e56b..fb5409dd0e 100644
--- a/perl.h
+++ b/perl.h
@@ -383,7 +383,8 @@ 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) && defined(I_PTHREAD)
+#if (defined(USE_THREADS) || defined(USE_ITHREADS)) \
+ && defined(PTHREAD_H_FIRST) && defined(I_PTHREAD)
# include <pthread.h>
#endif
@@ -1502,11 +1503,12 @@ typedef struct ptr_tbl PTR_TBL_t;
* May make sense to have threads after "*ish.h" anyway
*/
-#ifdef USE_THREADS
+#if defined(USE_THREADS) || defined(USE_ITHREADS)
+# if defined(USE_THREADS)
/* pending resolution of licensing issues, we avoid the erstwhile
* atomic.h everywhere */
# define EMULATE_ATOMIC_REFCOUNTS
-
+# endif
# ifdef FAKE_THREADS
# include "fakethr.h"
# else
@@ -1537,10 +1539,10 @@ typedef pthread_key_t perl_key;
# endif /* OS2 */
# endif /* WIN32 */
# endif /* FAKE_THREADS */
-#endif /* USE_THREADS */
+#endif /* USE_THREADS || USE_ITHREADS */
#ifdef WIN32
-#include "win32.h"
+# include "win32.h"
#endif
#ifdef VMS