Le 2018-12-04 14:52, Alexandre Julliard a écrit :
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.
From the following error message, I investigated to identify the source of the problem: In file included from ../../include/winsock2.h:47:0, from http.c:38: ../../include/winsock.h:58:22: error: unknown type name 'Include_winsock_h_before_stdlib_h_or_use_the_MSVCRT_library' # define fd_set Include_winsock_h_before_stdlib_h_or_use_the_MSVCRT_library ^ The patch fixes it but my understanding is probably limited and I have no better idea to solve this building error.