Ported to OpenBSD.
Merge pull request #100 from thequux/openbsd

Ported to OpenBSD.