diff options
author | Ulf Möller <ulf@openssl.org> | 1999-05-13 13:21:17 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-05-13 13:21:17 +0000 |
commit | 75e0770d9661d5c1c3a4ce8122a50602eebb4de4 (patch) | |
tree | d0b1c8a5f2b57ec25fabbb327521dfa7c79296df /apps/s_socket.c | |
parent | f7fd2ff72e88f49468a388b9806aceb4f1eacd29 (diff) | |
download | openssl-75e0770d9661d5c1c3a4ce8122a50602eebb4de4.tar.gz |
VMS support bug fixes.
Diffstat (limited to 'apps/s_socket.c')
-rw-r--r-- | apps/s_socket.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/s_socket.c b/apps/s_socket.c index 1d8587f1f5..99a94633aa 100644 --- a/apps/s_socket.c +++ b/apps/s_socket.c @@ -78,12 +78,12 @@ typedef unsigned int u_int; #include "s_apps.h" #include <openssl/ssl.h> +#ifdef VMS #if (__VMS_VER < 70000000) /* FIONBIO used as a switch to enable ioctl, and that isn't in VMS < 7.0 */ #undef FIONBIO #endif -#ifdef VMS /* for vfork() */ -#include <processes.h> +#include <processes.h> /* for vfork() */ #endif static struct hostent *GetHostByName(char *name); @@ -255,7 +255,9 @@ int nbio_init_client_ip(int *sock, unsigned char ip[4], int port) if (*sock <= 0) { +#ifdef FIONBIO unsigned long l=1; +#endif s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL); if (s == INVALID_SOCKET) { perror("socket"); return(0); } @@ -387,7 +389,7 @@ redoit: memset((char *)&from,0,sizeof(from)); len=sizeof(from); - /* Note: under VMS with SOCKETSHR the third parameter is currently + /* Note: under VMS with SOCKETSHR the fourth parameter is currently * of type (int *) 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 (int *) or (void *). |