[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] getaddrinfo: fix gai_strerror signature
From: |
Simon Josefsson |
Subject: |
Re: [PATCH] getaddrinfo: fix gai_strerror signature |
Date: |
Fri, 29 Apr 2011 09:19:45 +0200 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux) |
Eric Blake <address@hidden> writes:
> Several platforms declare gai_strerror to return char* rather than
> const char*. Worse, on mingw, if UNICODE is defined, it is defined
> to return WCHAR*, which means the result is in unicode but an
> application expecting bytes for characters will only see a one-byte
> answer.
>
> * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
> and work around mingw with UNICODE defined.
> (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
Thanks. I'll test the patch in my project and if there is any problem,
I'll notice and report back...
/Simon