> That said, sys/types.h is most likely not what is needed to > make sys/mman.h self-contained, but that's a completely > separate issue.
By the way, where is it written that sys/mman.h has to be self-contained? I bet it is written exactly the other way around.