summaryrefslogtreecommitdiff
path: root/lib/if2ip.h
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-10-09 19:23:50 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-10-09 19:23:50 +0000
commitfad3288d20fba6af71fa9bdfb851fe92c3aa2f04 (patch)
tree16b44ad8c9bfa7780292a744fc43462d16e24b1e /lib/if2ip.h
parent5ecff1e4c3f92976371634ef40072758d1a17426 (diff)
downloadcurl-fad3288d20fba6af71fa9bdfb851fe92c3aa2f04.tar.gz
Fixed the --interface option to work with IPv6 connections on glibc
systems supporting getifaddrs(). Also fixed a problem where an IPv6 address could be chosen instead of an IPv4 one for --interface when it involved a name lookup.
Diffstat (limited to 'lib/if2ip.h')
-rw-r--r--lib/if2ip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if2ip.h b/lib/if2ip.h
index 4e86e2b27..6888a4cb8 100644
--- a/lib/if2ip.h
+++ b/lib/if2ip.h
@@ -24,7 +24,7 @@
***************************************************************************/
#include "setup.h"
-extern char *Curl_if2ip(const char *interf, char *buf, int buf_size);
+extern char *Curl_if2ip(int af, const char *interf, char *buf, int buf_size);
#ifdef __INTERIX
#include <sys/socket.h>