https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84629 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The __NR_* macros are actually provided by kernel headers rather than glibc, /usr/include/asm*/unistd*.h So this looks like a distro bug to me.