Describe Your Environment
Describe the bug
In src/net/Socket.h there are conditionals that look like
#if defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
and for the most part this is about "windows" vs "mostly-POSIX operating system".
We have to patch these to add || defined(__NetBSD__). It would be less changes to maintain/merge if we didn't, and it would also mean that the next person on FooBSD or illumos won't need to patch either.
Discussion
I'm not sure if this can just be "if windows, then windows-version, else", but if so that would be great.