A bug has been opened against 'libc6-dev' requesting that 'RLIMIT_RTTIME' and RLIMIT_NLIMITS = 16 be included in '/usr/include/bits/resource.h':
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627619 Until that gets done, I added the following include right after the one for '/usr/include/sys/resource.h' in 'pam_limits.c': '#include "/usr/src/linux/include/asm-generic/resource.h" Make spits out some redefinition warnings but the library gets built and after putting the full path to the new library in the '/etc/pam.d' entries that reference 'pam_limits' there are no more warnings. I tried fiddling around with the quilt patches but failed, so this hack workaround will have to suffice for now.