Ensure that HAVE_GETHOSTBYADDR is defined under Android too
This is supposed to always be the same as HAVE_GETHOSTBYNAME, but wasn't, because the latter was explicitly defined for Android after defining the former as it.
This commit is contained in:
@@ -106,11 +106,6 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress);
|
|||||||
#endif
|
#endif
|
||||||
#endif // __WINDOWS__
|
#endif // __WINDOWS__
|
||||||
|
|
||||||
// we assume that we have gethostbyaddr_r() if and only if we have
|
|
||||||
// gethostbyname_r() and that it uses the similar conventions to it (see
|
|
||||||
// comment in configure)
|
|
||||||
#define HAVE_GETHOSTBYADDR HAVE_GETHOSTBYNAME
|
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
#ifndef HAVE_GETHOSTBYNAME
|
#ifndef HAVE_GETHOSTBYNAME
|
||||||
#define HAVE_GETHOSTBYNAME
|
#define HAVE_GETHOSTBYNAME
|
||||||
@@ -125,7 +120,13 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress);
|
|||||||
#ifdef HAVE_FUNC_GETHOSTBYNAME_R_6
|
#ifdef HAVE_FUNC_GETHOSTBYNAME_R_6
|
||||||
#define HAVE_FUNC_GETHOSTBYADDR_R_6
|
#define HAVE_FUNC_GETHOSTBYADDR_R_6
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif // __ANDROID__/!__ANDROID__
|
||||||
|
|
||||||
|
// we assume that we have gethostbyaddr_r() if and only if we have
|
||||||
|
// gethostbyname_r() and that it uses the similar conventions to it (see
|
||||||
|
// comment in configure)
|
||||||
|
#define HAVE_GETHOSTBYADDR HAVE_GETHOSTBYNAME
|
||||||
|
|
||||||
// the _r functions need the extra buffer parameter but unfortunately its type
|
// the _r functions need the extra buffer parameter but unfortunately its type
|
||||||
// differs between different systems and for the systems which use opaque
|
// differs between different systems and for the systems which use opaque
|
||||||
// structs for it (at least AIX and OpenBSD) it must be zero-filled before
|
// structs for it (at least AIX and OpenBSD) it must be zero-filled before
|
||||||
|
Reference in New Issue
Block a user