--- EV/EV.xs 2015/07/13 19:47:53 1.171 +++ EV/EV.xs 2016/09/17 02:28:30 1.172 @@ -536,7 +536,9 @@ SvREADONLY_on (sv); } #if !defined _WIN32 && !defined _MINIX && !EV_NO_ATFORK -#if __linux +/* unfortunately, musl neither implements the linux standard base, +/* nor makes itself detectable via macros. yeah, right... */ +#if __linux && (__GLIBC__ || __UCLIBC__) int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void * __dso_handle); __register_atfork (0, 0, default_fork, 0); #else