On the other hand, <asm/page.h> probably really shouldn't belong in <sys/mman.h>. Could you try removing <asm/page.h> from <sys/mman.h> and see what happens? -hpa