Skip to content
Snippets Groups Projects
Commit 5b664096 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

VMS adjustments. The IOCTL_3_ARGS #define used now should be moved to become

a configure checked one.
parent 6f543f3e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment