openbsd has getdents
actually, getdents only starting with 5.5
Merge pull request #160 from tedu/master

Add getdents on OpenBSD 5.5