summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>1997-12-13 13:09:15 -0500
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-12-17 12:02:03 +0000
commitdd96f567babd77c258fd51112ff376f11f0b32ac (patch)
tree25be9a2f30132eaa9bf9f5a5a2cafb22b3630ea3 /perl.h
parent414017bba678bf057e68f59bd92234bf578ec54e (diff)
downloadperl-dd96f567babd77c258fd51112ff376f11f0b32ac.tar.gz
Threading patches for OS/2 (missing files taken from previous patch):
Subject: Re: 5.004_55: OS/2 patches again p4raw-id: //depot/perl@371
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/perl.h b/perl.h
index 63367e0cc1..67a171afa3 100644
--- a/perl.h
+++ b/perl.h
@@ -965,8 +965,8 @@ typedef I32 (*filter_t) _((int, SV *, int));
#endif
/*
- * USE_THREADS needs to be after unixish.h as <pthread.h> includes <sys/signal.h>
- * which defines NSIG - which will stop inclusion of <signal.h>
+ * USE_THREADS needs to be after unixish.h as <pthread.h> includes
+ * <sys/signal.h> which defines NSIG - which will stop inclusion of <signal.h>
* this results in many functions being undeclared which bothers C++
* May make sense to have threads after "*ish.h" anyway
*/
@@ -978,11 +978,15 @@ typedef I32 (*filter_t) _((int, SV *, int));
# ifdef WIN32
# include <win32thread.h>
# else
-# include <pthread.h>
+# ifdef OS2
+# include "os2thread.h"
+# else
+# include <pthread.h>
typedef pthread_t perl_os_thread;
typedef pthread_mutex_t perl_mutex;
typedef pthread_cond_t perl_cond;
typedef pthread_key_t perl_key;
+# endif /* OS2 */
# endif /* WIN32 */
# endif /* FAKE_THREADS */
#endif /* USE_THREADS */