diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-06 12:22:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-06 12:22:48 +0000 |
commit | 5b6640960a3d2a2df7d48342d3bf60d3656aaac7 (patch) | |
tree | 3820cb5b0f0ca78f525f041aa775334a48c4d8fc /lib | |
parent | 6f543f3ede618e1f980e1c54bf9560ee196678e2 (diff) |
VMS adjustments. The IOCTL_3_ARGS #define used now should be moved to become
a configure checked one.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/if2ip.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <inet.h> +#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; } |