Eric Blake wrote:
> +/* Get all possible declarations of gethostname(). */
> +#if @UNISTD_H_HAVE_WINSOCK2_H@ && !defined _GL_INCLUDING_WINSOCK2_H
> +# define _GL_INCLUDING_WINSOCK2_H
> +# include
> +# undef _GL_INCLUDING_WINSOCK2_H
> +#endif
>
Would it be possible to conditionalize this with
2010/3/22 Eric Blake :
> Since commit 4e86671a, gethostname failed to compile on mingw.
> Gnulib's sys/socket.h includes winsock2.h, which then includes
> unistd.h prior to declaring gethostname. The fix is to ensure
> that our replacement unistd.h does not declare any replacements
> until we are
On 03/22/2010 11:56 AM, Simon Josefsson wrote:
>> Typo on line 26.
>
> Thanks, now it works. Any reason not to push this?
Only that I was not set up to reproduce the failure (cross-compiling
from cygwin was running into its own set of problems, because cygwin's
gcc-3 compiler mistakenly picks up
Eric Blake writes:
> On 03/22/2010 11:39 AM, Simon Josefsson wrote:
>> Eric Blake writes:
>>
>>> Since commit 4e86671a, gethostname failed to compile on mingw.
>>> Gnulib's sys/socket.h includes winsock2.h, which then includes
>>> unistd.h prior to declaring gethostname. The fix is to ensure
>
On 03/22/2010 11:39 AM, Simon Josefsson wrote:
> Eric Blake writes:
>
>> Since commit 4e86671a, gethostname failed to compile on mingw.
>> Gnulib's sys/socket.h includes winsock2.h, which then includes
>> unistd.h prior to declaring gethostname. The fix is to ensure
>> that our replacement unist
Eric Blake writes:
> Since commit 4e86671a, gethostname failed to compile on mingw.
> Gnulib's sys/socket.h includes winsock2.h, which then includes
> unistd.h prior to declaring gethostname. The fix is to ensure
> that our replacement unistd.h does not declare any replacements
> until we are su
Since commit 4e86671a, gethostname failed to compile on mingw.
Gnulib's sys/socket.h includes winsock2.h, which then includes
unistd.h prior to declaring gethostname. The fix is to ensure
that our replacement unistd.h does not declare any replacements
until we are sure that winsock2.h is completel