http://bugs.gentoo.org/451668
http://pkgs.fedoraproject.org/cgit/lash.git/tree/lash-gcc47.patch

--- liblash/lash.c
+++ liblash/lash.c
@@ -22,6 +22,7 @@
 #include <string.h>
 #include <strings.h>
 #include <pthread.h>
+#include <sys/resource.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/socket.h>
