From: Mikael Djurfeldt Date: Sun, 26 Feb 2017 19:09:56 +0000 (+0100) Subject: Fix 'size of tv is unknown' error in brief_async_signal_safe_sleep (musl) X-Git-Tag: v8.0.0~892 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffad61d3bbe86c09ffe062dab393fcb0e4940580;p=gc 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. --- diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 3c018cf2..2c027bc3 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;