Properly include iconv.h

* src/iri.c: Check HAVE_ICONV to include iconv.h
* src/url.c: Same
This commit is contained in:
Tim Rühsen 2016-10-07 13:24:15 +02:00
parent f79bb20f1b
commit 517d799b6f
2 changed files with 6 additions and 2 deletions

View File

@ -33,7 +33,9 @@ as that of the covered work. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iconv.h>
#ifdef HAVE_ICONV
# include <iconv.h>
#endif
#include <stringprep.h>
#include <idna.h>
#include <idn-free.h>

View File

@ -43,7 +43,9 @@ as that of the covered work. */
#include "host.h" /* for is_valid_ipv6_address */
#include "c-strcase.h"
#include <iconv.h>
#ifdef HAVE_ICONV
# include <iconv.h>
#endif
#include <langinfo.h>
#ifdef __VMS