Frédéric Fauberteau triaxx@NetBSD.org writes:
On NetBSD, time.h includes sys/time.h that includes sys/select.h. It must be included before winsock2.h that redefines fd_set.
winsock2.h is supposed to be included before everything else so that it can properly redefine the types.