aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_sock.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-04-25 20:57:09 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-04-25 20:57:09 +0000
commita1e464f94abb0ccfda284a96c358a5b32c7e72ac (patch)
tree53e1dc3dce1024ac05332008350394396fdfdbef /crypto/bio/b_sock.c
parentc74b3a6037b329dbd9dfbaf1a103e2cc707ecdbc (diff)
downloadopenssl-a1e464f94abb0ccfda284a96c358a5b32c7e72ac.tar.gz
Fixes so it will compile again under Win32.
Diffstat (limited to 'crypto/bio/b_sock.c')
-rw-r--r--crypto/bio/b_sock.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c
index 328394efe4..b9f10f3438 100644
--- a/crypto/bio/b_sock.c
+++ b/crypto/bio/b_sock.c
@@ -199,8 +199,12 @@ int BIO_sock_error(int sock)
int size;
size=sizeof(int);
-
- i=getsockopt(sock,SOL_SOCKET,SO_ERROR,&j,&size);
+ /* Note: under Windows the third parameter is of type (char *)
+ * whereas under other systems it is (void *) if you don't have
+ * a cast it will choke the compiler: if you do have a cast then
+ * you can either go for (char *) or (void *).
+ */
+ i=getsockopt(sock,SOL_SOCKET,SO_ERROR,(void *)&j,&size);
if (i < 0)
return(1);
else