From: Eric Wong Date: 2018-09-05T03:56:55+00:00 Subject: [ruby-core:88846] Re: [Ruby trunk Bug#15072] thread.c:4356:5: error: implicit declaration of function ‘ubf_list_atfork’ duerst@it.aoyama.ac.jp wrote: > https://bugs.ruby-lang.org/issues/15072 I think copying the macro for win32 for the !USE_UBF_LIST case should work(*). Can you test and commit if it works? (too tired and might not be back online soon) ``` diff --git a/thread_pthread.c b/thread_pthread.c index 0159b65291..2fc8f1d681 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1379,7 +1379,8 @@ ubf_wakeup_all_threads(void) #define ubf_select 0 static void ubf_wakeup_all_threads(void) { return; } static int ubf_threads_empty(void) { return 1; } +#define ubf_list_atfork() do {} while (0) #endif /* USE_UBF_LIST */ #define TT_DEBUG 0 #define WRITE_CONST(fd, str) (void)(write((fd),(str),sizeof(str)-1)<0) ``` Something similar for ubf_timer_disarm() might be needed, too. (*) Because ubf_list stuff is disabled on Cygwin (Not sure why, it's always been that way): #if defined(SIGVTALRM) && !defined(__CYGWIN__) # define USE_UBF_LIST 1 #endif Unsubscribe: