From ffad61d3bbe86c09ffe062dab393fcb0e4940580 Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Sun, 26 Feb 2017 20:09:56 +0100 Subject: [PATCH] Fix 'size of tv is unknown' error in brief_async_signal_safe_sleep (musl) (fix commits 62097c3, 9f48082) Include to get struct timeval defined and select() declared. * pthread_stop_world.c [GC_ENABLE_SUSPEND_THREAD]: Include sys/time.h before GC_brief_async_signal_safe_sleep definition. --- pthread_stop_world.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 3c018cf..2c027bc 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -389,6 +389,8 @@ STATIC void GC_restart_handler(int sig) # endif /* !USE_TKILL_ON_ANDROID */ # ifdef GC_ENABLE_SUSPEND_THREAD +# include + STATIC void GC_brief_async_signal_safe_sleep(void) { struct timeval tv; -- 2.7.4