Commit c9d67d4d authored by Richard Levitte's avatar Richard Levitte
Browse files

The VMS I run on doesn't know socklen_t and uses size_t instead.

parent 8de5b7f5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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};