Jeremy C. Reed wrote: > I haven't looked at gedit-document-loader.c but maybe it needs to include > <sys/types.h>. Aha! The problem was that types.h was included *after* mman.h. I changed the order of those two lines and the problem is fixed. Would that fix be safe on all the platforms supported by pkgsrc, I wonder?