This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix a couple of casting warnings
[perl5.git] / thread.h
index 476f310..7ff71fa 100644 (file)
--- a/thread.h
+++ b/thread.h
 #  define THREAD_CREATE_NEEDS_STACK (32*1024)
 #endif
 
+#ifdef __VMS
+  /* Default is 1024 on VAX, 8192 otherwise */
+#  define THREAD_CREATE_NEEDS_STACK (32*1024)
+#endif
+
 #ifdef I_MACH_CTHREADS
 
 /* cthreads interface */
 #ifndef ALLOC_THREAD_KEY
 #  define ALLOC_THREAD_KEY \
     STMT_START {                                               \
-       int _eC_;                                               \
-       if ((_eC_ = pthread_key_create(&PL_thr_key, 0))) {      \
+       if (pthread_key_create(&PL_thr_key, 0)) {               \
             write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \
            exit(1);                                            \
        }                                                       \