bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] [PATCH] Include libunistring headers only when used


From: Tim Ruehsen
Subject: Re: [Bug-wget] [PATCH] Include libunistring headers only when used
Date: Mon, 20 Mar 2017 09:44:08 +0100
User-agent: KMail/5.2.3 (Linux/4.9.0-2-amd64; KDE/5.28.0; x86_64; ; )

Thanks, applied !

Regards, Tim

On Monday, March 20, 2017 3:00:19 AM CET Mike Frysinger wrote:
> The unistring functions are used only when an older version of libidn2
> is used, so don't include its headers either w/newer libdin2 versions.
> ---
>  src/iri.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/src/iri.c b/src/iri.c
> index 8be109e6961c..db87135bae1b 100644
> --- a/src/iri.c
> +++ b/src/iri.c
> @@ -39,8 +39,10 @@ as that of the covered work.  */
>  # include <iconv.h>
>  #endif
>  #include <idn2.h>
> -#include <unicase.h>
> -#include <unistr.h>
> +#if IDN2_VERSION_NUMBER < 0x00140000
> +# include <unicase.h>
> +# include <unistr.h>
> +#endif
> 
>  #include "utils.h"
>  #include "url.h"

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]