I ran into this compiling OpenSSL 0.9.6g.
winsock2.h gets included automatically with windows.h,
which blocks any subsequent inclusion of winsock.h.
OpenSSL 0.9.6g seems to make use of winsock 1.1
API. Although it includes winsock.h,
WSACancelBlockingCall() prototype is not imported and
link will fail because wrong calling convention is chosen.
As a simple fix, please activate section of winsock2.h
which includes these Winsock 1.1 functions (like
WSACancelBlockingCall() ) and is disabled using #if 0
so that code that uses it will compile...
Log in to post a comment.