(void*) the argument to make sure we work with picky compilers
Artur Bergman [Fri, 12 Oct 2001 14:38:12 +0000 (14:38 +0000)]
p4raw-id: //depot/perl@12407

ext/threads/threads.xs

index 1dc4e39..0d00c81 100755 (executable)
@@ -157,9 +157,9 @@ SV* Perl_thread_create(char* class, SV* init_function, SV* params) {
 
 #else
 #ifdef OLD_PTHREADS_API
-       pthread_create( &thread->thr, (pthread_attr_t)NULL, Perl_thread_run, thread);
+       pthread_create( &thread->thr, (pthread_attr_t)NULL, Perl_thread_run, (void *)thread);
 #else
-       pthread_create( &thread->thr, (pthread_attr_t*)NULL, Perl_thread_run, thread);
+       pthread_create( &thread->thr, (pthread_attr_t*)NULL, Perl_thread_run, (void *)thread);
 #endif
 #endif
        MUTEX_UNLOCK(&create_mutex);