The latest Gnulib getloadavg.c does not compile on Android API 8, with the NDK r10c:
CC getloadavg.o getloadavg.c: In function 'rpl_getloadavg': getloadavg.c:509:5: error: implicit declaration of function 'sysinfo' [-Werror=implicit-function-declaration] if (sysinfo (&info) < 0) ^ which function is not available till API level 13.