This commit is contained in:
Daniel Stenberg 2004-10-06 06:58:42 +00:00
parent 93e084e097
commit 6c5ea2af27
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@
#include "inet_ntoa_r.h" #include "inet_ntoa_r.h"
#endif #endif
#ifdef VMS #ifdef VMS
#include <inet.h> #include <inet.h>
#endif #endif
@ -100,7 +100,7 @@ char *Curl_if2ip(const char *interface, char *buf, int buf_size)
return NULL; /* this can't be a fine interface name */ return NULL; /* this can't be a fine interface name */
memcpy(req.ifr_name, interface, len+1); memcpy(req.ifr_name, interface, len+1);
req.ifr_addr.sa_family = AF_INET; req.ifr_addr.sa_family = AF_INET;
#ifdef IOCTL_3_ARGS #ifdef IOCTL_3_ARGS
if (SYS_ERROR == ioctl(dummy, SIOCGIFADDR, &req)) { if (SYS_ERROR == ioctl(dummy, SIOCGIFADDR, &req)) {
#else #else
if (SYS_ERROR == ioctl(dummy, SIOCGIFADDR, &req, sizeof(req))) { if (SYS_ERROR == ioctl(dummy, SIOCGIFADDR, &req, sizeof(req))) {