summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-07-12 04:16:41 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-12 04:16:41 +0000
commit3fcd5a54ee9a769b0df77dcf2827b3be2e6ddbd1 (patch)
treead8164e9d350563b2f36f7f37422f1b2b42e7370 /thread.h
parentf5a828106742b7d9a2a6e7641bb412761f0af6d4 (diff)
downloadperl-3fcd5a54ee9a769b0df77dcf2827b3be2e6ddbd1.tar.gz
(Retracted by #11289.)
p4raw-id: //depot/perl@11289
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index a1e8fdc65b..f36e7a2ad7 100644
--- a/thread.h
+++ b/thread.h
@@ -303,8 +303,11 @@
#endif
#ifndef PTHREAD_ATFORK
+typedef void(*Perl_pthread_atfork_t)(void);
# define PTHREAD_ATFORK(prepare,parent,child) \
- pthread_atfork(prepare,parent,child)
+ pthread_atfork((Perl_pthread_atfork_t)prepare,\
+ (Perl_pthread_atfork_t)parent,\
+ (Perl_pthread_atfork_t)child)
#endif
#ifndef THREAD_RET_TYPE