Hello, OpenSSL 1.0.1 can't be compiled on MinGW because of 2 bugs:
1. There is a bad configuration of output format of asm files. 2. There is a conflict of the order of winsock2.h and windows.h in some source files so that the compiler shows error messages: ======== #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead." mingw32-make: *** [tmp\t1_lib.o] Error 1 ======== The bug is introduced by the include of <windows.h> in the file "crypto/rand/rand.h" and finally raised by the inappropriate include order in some source files. Attached patch applies to: OpenSSL 1.0.1i Files affected: apps/apps.c crypto/rand/randtest.c ssl/ssl_ciph.c ssl/ssl_sess.c ssl/t1_lib.c util/pl/Mingw32.pl Regards, Linda Zhang
a.patch
Description: Binary data
