1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-12 14:43:24 +00:00

Removed dependency on gethostbyname()

This commit is contained in:
Gerhard Rieger 2019-02-24 23:17:17 +01:00
parent 2bd582713d
commit a3c688210f
6 changed files with 35 additions and 33 deletions

View file

@ -1364,7 +1364,7 @@ int Pause(void) {
return retval;
}
#if WITH_IP4 || WITH_IP6
#if ( _WITH_IP4 || _WITH_IP6 ) && HAVE_GETHOSTBYNAME
struct hostent *Gethostbyname(const char *name) {
struct hostent *hent;
Debug1("gethostbyname(\"%s\")", name);
@ -1380,7 +1380,7 @@ struct hostent *Gethostbyname(const char *name) {
}
return hent;
}
#endif /* WITH_IP4 || WITH_IP6 */
#endif /* ( _WITH_IP4 || _WITH_IP6 ) && HAVE_GETHOSTBYNAME */
#if (_WITH_IP4 || _WITH_IP6) && HAVE_GETADDRINFO
int Getaddrinfo(const char *node, const char *service,