gethostname must be outside the emulation-only block.

This commit is contained in:
chris_kohlhoff 2006-10-04 13:18:41 +00:00
parent 3c85744cc2
commit 9bdef5f755

View File

@ -554,18 +554,18 @@ inline int inet_pton(int af, const char* src, void* dest,
#endif // defined(BOOST_WINDOWS) || defined(__CYGWIN__)
}
#if defined(BOOST_WINDOWS) || defined(__CYGWIN__) \
|| defined(__MACH__) && defined(__APPLE__)
// The following functions are only needed for emulation of getaddrinfo and
// getnameinfo.
inline int gethostname(char* name, int namelen)
{
set_error(0);
return error_wrapper(::gethostname(name, namelen));
}
#if defined(BOOST_WINDOWS) || defined(__CYGWIN__) \
|| defined(__MACH__) && defined(__APPLE__)
// The following functions are only needed for emulation of getaddrinfo and
// getnameinfo.
inline int translate_netdb_error(int error)
{
switch (error)