[Top][All Lists]

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

Re: gethostname

From: Simon Josefsson
Subject: Re: gethostname
Date: Wed, 13 Aug 2008 02:48:33 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Sam Steingold <address@hidden> writes:

> note: woe32 does have gethostname, so mingw is fully covered.

Not quite, MinGW only has gethostname if you link to -lws2_32.  The
current m4 test doesn't check for this, so it fails to detect that
gethostname exists.  My patch attempts to test for gethostname in that
library, a'la similar code for getaddrinfo etc, but it is rather messy.
Possibly this link-to-ws2_32-if-it-makes-sense code should be
re-factored out to a separate m4 test.


reply via email to

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