Fix unused-function warning in wxSockAddressImpl code

This commit is contained in:
Maarten Bent
2020-08-01 11:41:28 +02:00
parent 81a5efb6ab
commit 5bd35f6c85

View File

@@ -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,