diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-05-26 22:10:15 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-05-26 22:10:15 +0200 |
commit | 1b89456509c1ae3907bd65d9bc2114423ee4e790 (patch) | |
tree | 427aa34149c102f09a6131bda0ce701338dedf4b /lib | |
parent | 9d85d4746bcac97a06006db462f02037ffaabae0 (diff) |
url-parser: only use if_nametoindex if detected by configure
The previous #ifdef detection wasn't good enough.
Bug: http://curl.haxx.se/mail/lib-2014-05/0260.html
Reported-by: Chris Young
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4009,7 +4009,7 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data, } else { /* Zone identifier is not numeric */ -#if defined(HAVE_NET_IF_H) && defined(IFNAMSIZ) +#if defined(HAVE_NET_IF_H) && defined(IFNAMSIZ) && defined(HAVE_IF_NAMETOINDEX) char ifname[IFNAMSIZ + 2]; char *square_bracket; unsigned int scopeidx = 0; |