--- a/src/util.cc +++ b/src/util.cc @@ -30,6 +30,11 @@ #include #include #include +// Redox: the C++ wrapper pulls in a stale toolchain stdlib.h that +// lacks getloadavg. Re-declare it here since relibc provides the implementation. +#if defined(__redox__) +extern "C" int getloadavg(double loadavg[], int nelem); +#endif #include #include #include