diff --git a/src/common/sckaddr.cpp b/src/common/sckaddr.cpp index 0388132fb8..d73977556e 100644 --- a/src/common/sckaddr.cpp +++ b/src/common/sckaddr.cpp @@ -180,7 +180,11 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress); namespace { -#if defined(HAVE_GETHOSTBYNAME) +#if defined(HAVE_GETHOSTBYNAME) && \ + !defined(HAVE_FUNC_GETHOSTBYNAME_R_6) && \ + !defined(HAVE_FUNC_GETHOSTBYNAME_R_5) && \ + !defined(HAVE_FUNC_GETHOSTBYNAME_R_3) + hostent *deepCopyHostent(hostent *h, const hostent *he, char *buffer,