summaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_sock.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2006-01-04 12:03:47 +0000
committerRichard Levitte <levitte@openssl.org>2006-01-04 12:03:47 +0000
commitc9d67d4ddfa5bb36476a26113080ffcde44cac33 (patch)
tree9417f0b3bf5e76d3eea4f9e201a71ea0a74b3127 /crypto/bio/b_sock.c
parent8de5b7f54833435c4a3e281632871520cd5f1041 (diff)
The VMS I run on doesn't know socklen_t and uses size_t instead.
Diffstat (limited to 'crypto/bio/b_sock.c')
-rw-r--r--crypto/bio/b_sock.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c
index fd45bec331..d20f25ba7f 100644
--- a/crypto/bio/b_sock.c
+++ b/crypto/bio/b_sock.c
@@ -799,11 +799,16 @@ int BIO_accept(int sock, char **addr)
if (addr == NULL) goto end;
#ifdef EAI_FAMILY
+# ifdef OPENSSL_SYS_VMS
+# define SOCKLEN_T size_t
+# else
+# define SOCKLEN_T socklen_t
+#endif
do {
char h[NI_MAXHOST],s[NI_MAXSERV];
size_t l;
static union { void *p;
- int (*f)(const struct sockaddr *,socklen_t,
+ int (*f)(const struct sockaddr *,SOCKLEN_T,
char *,size_t,char *,size_t,int);
} getnameinfo = {NULL};