summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/thread.h b/thread.h
index 87fcdbe185..a1e8fdc65b 100644
--- a/thread.h
+++ b/thread.h
@@ -302,6 +302,11 @@
} STMT_END
#endif
+#ifndef PTHREAD_ATFORK
+# define PTHREAD_ATFORK(prepare,parent,child) \
+ pthread_atfork(prepare,parent,child)
+#endif
+
#ifndef THREAD_RET_TYPE
# define THREAD_RET_TYPE void *
# define THREAD_RET_CAST(p) ((void *)(p))
@@ -456,3 +461,7 @@ typedef struct condpair {
#ifndef INIT_THREADS
# define INIT_THREADS NOOP
#endif
+
+#ifndef PTHREAD_ATFORK
+# define PTHREAD_ATFORK(prepare,parent,child) NOOP
+#endif