--- Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c.orig
+++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c
@@ -47,6 +47,7 @@
 #include <time.h>		/* for time() */
 #include <errno.h>
 #include <sys/wait.h>
+#include <sys/resource.h>
 
 #include <security/_pam_macros.h>