summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thread_pthread.c2
-rw-r--r--thread_win32.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 12db73e086..c8ee4e1272 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -71,6 +71,8 @@ native_mutex_initialize(pthread_mutex_t *lock)
}
}
+#define native_mutex_reinitialize_atfork(lock) native_mutex_initialize(lock)
+
static void
native_mutex_destroy(pthread_mutex_t *lock)
{
diff --git a/thread_win32.c b/thread_win32.c
index dc07a38a14..6bb29a1a40 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -326,6 +326,8 @@ native_mutex_initialize(rb_thread_lock_t *lock)
#endif
}
+#define native_mutex_reinitialize_atfork(lock) (void)(lock)
+
static void
native_mutex_destroy(rb_thread_lock_t *lock)
{