require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETDB_H_)) {
    eval 'sub _NETDB_H_ () {1;}' unless defined(&_NETDB_H_);
    require 'sys/param.ph';
    require 'sys/cdefs.ph';
    eval 'sub _PATH_HEQUIV () {"/etc/hosts.equiv";}' unless defined(&_PATH_HEQUIV);
    eval 'sub _PATH_HOSTS () {"/etc/hosts";}' unless defined(&_PATH_HOSTS);
    eval 'sub _PATH_NETWORKS () {"/etc/networks";}' unless defined(&_PATH_NETWORKS);
    eval 'sub _PATH_PROTOCOLS () {"/etc/protocols";}' unless defined(&_PATH_PROTOCOLS);
    eval 'sub _PATH_SERVICES () {"/etc/services";}' unless defined(&_PATH_SERVICES);
    eval 'sub h_addr () { $h_addr_list[0];}' unless defined(&h_addr);
    eval 'sub NETDB_INTERNAL () {-1;}' unless defined(&NETDB_INTERNAL);
    eval 'sub NETDB_SUCCESS () {0;}' unless defined(&NETDB_SUCCESS);
    eval 'sub HOST_NOT_FOUND () {1;}' unless defined(&HOST_NOT_FOUND);
    eval 'sub TRY_AGAIN () {2;}' unless defined(&TRY_AGAIN);
    eval 'sub NO_RECOVERY () {3;}' unless defined(&NO_RECOVERY);
    eval 'sub NO_DATA () {4;}' unless defined(&NO_DATA);
    eval 'sub NO_ADDRESS () { &NO_DATA;}' unless defined(&NO_ADDRESS);
    eval 'sub AI_PASSIVE () {1;}' unless defined(&AI_PASSIVE);
    eval 'sub AI_CANONNAME () {2;}' unless defined(&AI_CANONNAME);
    eval 'sub AI_NUMERICHOST () {4;}' unless defined(&AI_NUMERICHOST);
    eval 'sub AI_EXT () {8;}' unless defined(&AI_EXT);
    eval 'sub AI_NUMERICSERV () {16;}' unless defined(&AI_NUMERICSERV);
    eval 'sub AI_MASK () {( &AI_PASSIVE |  &AI_CANONNAME |  &AI_NUMERICHOST |  &AI_NUMERICSERV);}' unless defined(&AI_MASK);
    eval 'sub NI_NUMERICHOST () {1;}' unless defined(&NI_NUMERICHOST);
    eval 'sub NI_NUMERICSERV () {2;}' unless defined(&NI_NUMERICSERV);
    eval 'sub NI_NOFQDN () {4;}' unless defined(&NI_NOFQDN);
    eval 'sub NI_NAMEREQD () {8;}' unless defined(&NI_NAMEREQD);
    eval 'sub NI_DGRAM () {16;}' unless defined(&NI_DGRAM);
    eval 'sub NI_MAXHOST () { &MAXHOSTNAMELEN;}' unless defined(&NI_MAXHOST);
    eval 'sub NI_MAXSERV () {32;}' unless defined(&NI_MAXSERV);
    eval 'sub SCOPE_DELIMITER () {ord(\'%\');}' unless defined(&SCOPE_DELIMITER);
    eval 'sub EAI_BADFLAGS () {-1;}' unless defined(&EAI_BADFLAGS);
    eval 'sub EAI_NONAME () {-2;}' unless defined(&EAI_NONAME);
    eval 'sub EAI_AGAIN () {-3;}' unless defined(&EAI_AGAIN);
    eval 'sub EAI_FAIL () {-4;}' unless defined(&EAI_FAIL);
    eval 'sub EAI_NODATA () {-5;}' unless defined(&EAI_NODATA);
    eval 'sub EAI_FAMILY () {-6;}' unless defined(&EAI_FAMILY);
    eval 'sub EAI_SOCKTYPE () {-7;}' unless defined(&EAI_SOCKTYPE);
    eval 'sub EAI_SERVICE () {-8;}' unless defined(&EAI_SERVICE);
    eval 'sub EAI_ADDRFAMILY () {-9;}' unless defined(&EAI_ADDRFAMILY);
    eval 'sub EAI_MEMORY () {-10;}' unless defined(&EAI_MEMORY);
    eval 'sub EAI_SYSTEM () {-11;}' unless defined(&EAI_SYSTEM);
    eval 'sub EAI_BADHINTS () {-12;}' unless defined(&EAI_BADHINTS);
    eval 'sub EAI_PROTOCOL () {-13;}' unless defined(&EAI_PROTOCOL);
    eval 'sub RRSET_VALIDATED () {1;}' unless defined(&RRSET_VALIDATED);
    eval 'sub ERRSET_SUCCESS () {0;}' unless defined(&ERRSET_SUCCESS);
    eval 'sub ERRSET_NOMEMORY () {1;}' unless defined(&ERRSET_NOMEMORY);
    eval 'sub ERRSET_FAIL () {2;}' unless defined(&ERRSET_FAIL);
    eval 'sub ERRSET_INVAL () {3;}' unless defined(&ERRSET_INVAL);
    eval 'sub ERRSET_NONAME () {4;}' unless defined(&ERRSET_NONAME);
    eval 'sub ERRSET_NODATA () {5;}' unless defined(&ERRSET_NODATA);
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if(defined(&sun)) {
	if(defined(&__GNU_LIBRARY__)) {
	    require 'rpc/netdb.ph';
	} else {
	}
    }
}
1;
