The attached patch fixes trunk build problems in DragonFly BSD. It's trunk version of the issue #2796, but adds one (not DragonFly specific) fix to the Modules/mmapmodule.c - in case of (!HAVE_SYSCONF |
!_SC_PAGESIZE) my_getallocationgranularity will not be defined.