Created attachment 66528 [details] [review]
The attached patch fixes two autoconf tests so they will work properly on OpenBSD. sys/socket.h needs to include sys/types.h.
Thanks, fixed in git for 1.6.6 and 1.7.0 by applying your patch without changes.
I consider this to be a workaround for an OpenBSD bug, but it's easy enough to work around.
If you're an OpenBSD developer I would encourage you to make the public headers include their own dependencies (possibly by using private headers like glibc does), so that the obvious usage becomes correct, and you won't have to keep patching projects that are mainly tested on GNU.