From 5f4a48dd53e0831ee818fa9e683c22ab97ae43cc Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 10 Jan 2012 22:38:11 +0100 Subject: [PATCH 1/1] On windows pthread_atfork is not implemented --- src/xbt/xbt_os_thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xbt/xbt_os_thread.c b/src/xbt/xbt_os_thread.c index a53dfc90dd..3cb6dbbb9a 100644 --- a/src/xbt/xbt_os_thread.c +++ b/src/xbt/xbt_os_thread.c @@ -137,7 +137,11 @@ void xbt_os_thread_mod_postexit(void) int xbt_os_thread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) { +#ifdef WIN32 + xbt_die("Function pthread_atfork not implemented"); +#else return pthread_atfork(prepare, parent, child); +#endif } static void *wrapper_start_routine(void *s) -- 2.20.1