sys/socket.h must be included before net/if.h on OpenBSD, if.h uses AF_MAX which is defined in sys/socket.h.
Created attachment 1770 [details] patch that reorders includes to fix compilation on OpenBSD
applied in r1346, thanks
Created attachment 1770 [details] patch that reorders includes to fix compilation on OpenBSD