on all systems.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87012
13f79535-47bb-0310-9956-
ffa450edef68
return -1;
}
- if ((status = apr_getaddrinfo(&destsa, rmt_ip, AF_INET, RFC1413_PORT, 0,
+ if ((status = apr_getaddrinfo(&destsa, rmt_ip, APR_INET, RFC1413_PORT, 0,
p)) != APR_SUCCESS) {
/* This should not fail since we have a numeric address string
* as the host. */
hep = gethostbyname(w);
- if ((!hep) || (hep->h_addrtype != AF_INET || !hep->h_addr_list[0])) {
+ if ((!hep) || (hep->h_addrtype != APR_INET || !hep->h_addr_list[0])) {
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, "Cannot resolve host name %s --- exiting!", w);
exit(1);
}
struct hostent *h;
if ((h = gethostbyaddr((char *) &(s->addrs->host_addr),
- sizeof(struct in_addr), AF_INET))) {
+ sizeof(struct in_addr), APR_INET))) {
s->server_hostname = apr_pstrdup(p, (char *) h->h_name);
}
else {