https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117291
--- Comment #14 from Segher Boessenkool <segher at gcc dot gnu.org> --- (In reply to Peter Bergner from comment #13) asm-generic/ is a kernel thing, not relevant at all. bits/resource.h is used by <sys/resource.h>, the header you should use. That is used by "system.h" under a #ifdef HAVE_SYS_RESOURCE_H and we do get that defined. So what on earth is happening?