url-parser: only use if_nametoindex if detected by configure
authorDaniel Stenberg <daniel@haxx.se>
Mon, 26 May 2014 20:10:15 +0000 (22:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 26 May 2014 20:10:15 +0000 (22:10 +0200)
commit1b89456509c1ae3907bd65d9bc2114423ee4e790
tree427aa34149c102f09a6131bda0ce701338dedf4b
parent9d85d4746bcac97a06006db462f02037ffaabae0
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
configure.ac
lib/url.c