Patching linux-2.4.24 with uml-patch-2.4.24-1 modifies
the prototype of do_mmap_pgoff in include/linux/mm.h
but do_mmap2 in arch/i386/kernel/sys_i386.c still uses
the old function signature. I don't know if this is
intentional but in fact this breaks compilation for
ARCH=i386. The attached patch fixes this issue, though
it is kind of untested yet.