The patches are just allowing it to build on Dragonfly, changes are obvious. The only remarkable thing is that MAXNAMELEN isn't defined on DragonFly. I cheated by putting a MAXNAMELEN definition in config.h, otherwise I would have had to patch several other files that referenced it. It isn't obvious that they don't break anything else. Please add comments and feed upstream. As the maintainer, that's what I would have asked (that you follow the pkgsrc norms) had you asked me before making changes.
Attachment:
pgpe29jRdY5GY.pgp
Description: PGP signature