--- js/src/jsnum.h 2011-03-03 05:43:06.000000000 -0500 +++ js/src/jsnum.h.new 2012-08-16 14:58:04.000000000 -0400 @@ -97,6 +97,8 @@ { #ifdef WIN32 return _finite(d); +#elif defined(__UCLIBC__) + return isfinite(d); #else return finite(d); #endif @@ -108,7 +110,7 @@ #ifdef WIN32 int c = _fpclass(d); return c == _FPCLASS_NINF || c == _FPCLASS_PINF; -#elif defined(SOLARIS) +#elif defined(SOLARIS) || defined(__UCLIBC__) return !finite(d) && !isnan(d); #else return isinf(d);