Can't build openssl(ruby-1.8.7-p17) with VC6

artone$B$G$9!#e(B

VC6e$B$rMxMQ$7$?e(Bruby-1.8.7-p17e$B$Ne(Bmakee$BCf$K!"e(Bopenssle$B$G%3%s%Q%$%k%(%i!<$H$J$j$^e(B
e$B$9!#e(B

    cl -nologo -I. -I../.. -I../.././.. -I../.././../ext/openssl -MD 

-Zi -O
2b2xg- -G6 -DRUBY_EXTCONF_H="extconf.h" -c
-Tc…/…/./…/ext/openssl/ossl.c
ossl.c
C:\Program Files (x86)\Microsoft Visual
Studio\VC98\include\winsock2.h(99) : err
or C2011: ‘fd_set’ : ‘struct’
e$B$G<($5$l$k7?$H$7$F$9$G$KDj5A$5$l$F$$$^$9!#e(B
C:\Program Files (x86)\Microsoft Visual
Studio\VC98\include\winsock.h(49
) : ‘fd_set’ e$B$N@k8@$r3NG’$7$F$/$@$5$$!#e(B
(snip)

e$BB?J,!"$3$N%Q%C%A$GNI$$$H;W$&$N$G$9$,!#e(B

c:\home\ruby\ruby-1.8.7-p17\ext\openssl>diff -u -p ossl.h~ ossl.h
diff: conflicting specifications of output style
*** ossl.h~ Sun Jul 15 22:24:51 2007
— ossl.h Thu Jun 12 20:43:57 2008
*************** extern “C” {
*** 46,52 ****

#if defined(_WIN32)

define OSSL_NO_CONF_API 1

! # include <winsock2.h>
#endif
#include <errno.h>
#include <openssl/err.h>
— 46,56 ----

#if defined(_WIN32)

define OSSL_NO_CONF_API 1

! #ifdef USE_WINSOCK2
! # include <winsock2.h>
! #else
! # include <winsock.h>
! #endif
#endif
#include <errno.h>
#include <openssl/err.h>


arton [email protected]

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:35078] can’t build openssl(ruby-1.8.7-p17) with
VC6”
on Jun.12,2008 20:45:39, [email protected] wrote:

VC6e$B$rMxMQ$7$?e(Bruby-1.8.7-p17e$B$Ne(Bmakee$BCf$K!"e(Bopenssle$B$G%3%s%Q%$%k%(%i!<$H$J$j$^e(B
e$B$9!#e(B

openssle$B$Oe(B–with-winsock2e$B$8$c$J$$$H%3%s%Q%$%k$G$-$J$$$8$c$s%Pe(B
e$B%+%P%+e(Bopenssle$B$J$s$+7y$$e(B! e$B$G;W9MDd;$7$F$^$7$?!#e(B
(e$B>!<j$Ke(B)e$B$H$j$3$
$^$9!#$I$&$b$"$j$,$H$&$4$6$$$^$9!#e(B

e$B$=$l$G$O!#e(B