From 5b6640960a3d2a2df7d48342d3bf60d3656aaac7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 6 Aug 2001 12:22:48 +0000 Subject: VMS adjustments. The IOCTL_3_ARGS #define used now should be moved to become a configure checked one. --- lib/if2ip.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') diff --git a/lib/if2ip.c b/lib/if2ip.c index 1e6a88f0d..261de990a 100644 --- a/lib/if2ip.c +++ b/lib/if2ip.c @@ -66,6 +66,11 @@ #include "inet_ntoa_r.h" #endif +#ifdef VMS +#define IOCTL_3_ARGS +#include +#endif + /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" @@ -90,7 +95,11 @@ char *Curl_if2ip(char *interface, char *buf, int buf_size) memset(&req, 0, sizeof(req)); strcpy(req.ifr_name, interface); req.ifr_addr.sa_family = AF_INET; +#ifdef IOCTL_3_ARGS + if (SYS_ERROR == ioctl(dummy, SIOCGIFADDR, &req)) { +#else if (SYS_ERROR == ioctl(dummy, SIOCGIFADDR, &req, sizeof(req))) { +#endif sclose(dummy); return NULL; } -- cgit v1.2.3