https://bugs.winehq.org/show_bug.cgi?id=41705
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Alistair Leslie-Hughes from comment #8)
Created attachment 56125 [details] Stop redefining of SOCKADDR
Does this patch help things?
+#ifndef SOCKADDR typedef struct sockaddr SOCKADDR; +#endif
I don't think it will work because SOCKADDR was not defined, it is just a typedef.