require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_RESOLV_H_)) {
    eval 'sub _RESOLV_H_ () {1;}' unless defined(&_RESOLV_H_);
    require 'sys/param.ph';
    if((!defined( &BSD)) || ((defined(&BSD) ? &BSD : 0) < 199306)) {
	require 'sys/bitypes.ph';
    } else {
	require 'sys/types.ph';
    }
    require 'sys/cdefs.ph';
    require 'sys/socket.ph';
    require 'stdio.ph';
    eval 'sub __RES () {19960801;}' unless defined(&__RES);
    unless(defined(&_PATH_RESCONF)) {
	eval 'sub _PATH_RESCONF () {"/etc/resolv.conf";}' unless defined(&_PATH_RESCONF);
    }
    eval 'sub MAXNS () {3;}' unless defined(&MAXNS);
    eval 'sub MAXDFLSRCH () {3;}' unless defined(&MAXDFLSRCH);
    eval 'sub MAXDNSRCH () {6;}' unless defined(&MAXDNSRCH);
    eval 'sub LOCALDOMAINPARTS () {2;}' unless defined(&LOCALDOMAINPARTS);
    eval 'sub MAXDNSLUS () {4;}' unless defined(&MAXDNSLUS);
    eval 'sub RES_TIMEOUT () {5;}' unless defined(&RES_TIMEOUT);
    eval 'sub MAXRESOLVSORT () {10;}' unless defined(&MAXRESOLVSORT);
    eval 'sub RES_MAXNDOTS () {15;}' unless defined(&RES_MAXNDOTS);
    eval 'sub nsaddr () { $nsaddr_list[0];}' unless defined(&nsaddr);
    if(1) {
    }
    eval 'sub RES_INIT () {0x1;}' unless defined(&RES_INIT);
    eval 'sub RES_DEBUG () {0x2;}' unless defined(&RES_DEBUG);
    eval 'sub RES_AAONLY () {0x4;}' unless defined(&RES_AAONLY);
    eval 'sub RES_USEVC () {0x8;}' unless defined(&RES_USEVC);
    eval 'sub RES_PRIMARY () {0x10;}' unless defined(&RES_PRIMARY);
    eval 'sub RES_IGNTC () {0x20;}' unless defined(&RES_IGNTC);
    eval 'sub RES_RECURSE () {0x40;}' unless defined(&RES_RECURSE);
    eval 'sub RES_DEFNAMES () {0x80;}' unless defined(&RES_DEFNAMES);
    eval 'sub RES_STAYOPEN () {0x100;}' unless defined(&RES_STAYOPEN);
    eval 'sub RES_DNSRCH () {0x200;}' unless defined(&RES_DNSRCH);
    eval 'sub RES_INSECURE1 () {0x400;}' unless defined(&RES_INSECURE1);
    eval 'sub RES_INSECURE2 () {0x800;}' unless defined(&RES_INSECURE2);
    eval 'sub RES_NOALIASES () {0x1000;}' unless defined(&RES_NOALIASES);
    eval 'sub RES_USE_INET6 () {0x2000;}' unless defined(&RES_USE_INET6);
    eval 'sub RES_USE_EDNS0 () {0x40000000;}' unless defined(&RES_USE_EDNS0);
    eval 'sub RES_USE_DNSSEC () {0x20000000;}' unless defined(&RES_USE_DNSSEC);
    eval 'sub RES_DEFAULT () {( &RES_RECURSE |  &RES_DEFNAMES |  &RES_DNSRCH);}' unless defined(&RES_DEFAULT);
    eval 'sub RES_PRF_STATS () {0x1;}' unless defined(&RES_PRF_STATS);
    eval 'sub RES_PRF_CLASS () {0x4;}' unless defined(&RES_PRF_CLASS);
    eval 'sub RES_PRF_CMD () {0x8;}' unless defined(&RES_PRF_CMD);
    eval 'sub RES_PRF_QUES () {0x10;}' unless defined(&RES_PRF_QUES);
    eval 'sub RES_PRF_ANS () {0x20;}' unless defined(&RES_PRF_ANS);
    eval 'sub RES_PRF_AUTH () {0x40;}' unless defined(&RES_PRF_AUTH);
    eval 'sub RES_PRF_ADD () {0x80;}' unless defined(&RES_PRF_ADD);
    eval 'sub RES_PRF_HEAD1 () {0x100;}' unless defined(&RES_PRF_HEAD1);
    eval 'sub RES_PRF_HEAD2 () {0x200;}' unless defined(&RES_PRF_HEAD2);
    eval 'sub RES_PRF_TTLID () {0x400;}' unless defined(&RES_PRF_TTLID);
    eval 'sub RES_PRF_HEADX () {0x800;}' unless defined(&RES_PRF_HEADX);
    eval 'sub RES_PRF_QUERY () {0x1000;}' unless defined(&RES_PRF_QUERY);
    eval 'sub RES_PRF_REPLY () {0x2000;}' unless defined(&RES_PRF_REPLY);
    eval 'sub RES_PRF_INIT () {0x4000;}' unless defined(&RES_PRF_INIT);
    eval("sub res_goahead () { 0; }") unless defined(&res_goahead);
    eval("sub res_nextns () { 1; }") unless defined(&res_nextns);
    eval("sub res_modified () { 2; }") unless defined(&res_modified);
    eval("sub res_done () { 3; }") unless defined(&res_done);
    eval("sub res_error () { 4; }") unless defined(&res_error);
    if(1) {
    }
    eval 'sub res_hnok () { &__res_hnok;}' unless defined(&res_hnok);
    eval 'sub res_ownok () { &__res_ownok;}' unless defined(&res_ownok);
    eval 'sub res_mailok () { &__res_mailok;}' unless defined(&res_mailok);
    eval 'sub res_dnok () { &__res_dnok;}' unless defined(&res_dnok);
    eval 'sub sym_ston () { &__sym_ston;}' unless defined(&sym_ston);
    eval 'sub sym_ntos () { &__sym_ntos;}' unless defined(&sym_ntos);
    eval 'sub sym_ntop () { &__sym_ntop;}' unless defined(&sym_ntop);
    eval 'sub b64_ntop () { &__b64_ntop;}' unless defined(&b64_ntop);
    eval 'sub b64_pton () { &__b64_pton;}' unless defined(&b64_pton);
    eval 'sub loc_ntoa () { &__loc_ntoa;}' unless defined(&loc_ntoa);
    eval 'sub loc_aton () { &__loc_aton;}' unless defined(&loc_aton);
    eval 'sub dn_skipname () { &__dn_skipname;}' unless defined(&dn_skipname);
    eval 'sub fp_resstat () { &__fp_resstat;}' unless defined(&fp_resstat);
    eval 'sub fp_query () { &__fp_query;}' unless defined(&fp_query);
    eval 'sub fp_nquery () { &__fp_nquery;}' unless defined(&fp_nquery);
    eval 'sub hostalias () { &__hostalias;}' unless defined(&hostalias);
    eval 'sub putlong () {\'__putlong\';}' unless defined(&putlong);
    eval 'sub putshort () {\'__putshort\';}' unless defined(&putshort);
    eval 'sub p_class () { &__p_class;}' unless defined(&p_class);
    eval 'sub p_time () { &__p_time;}' unless defined(&p_time);
    eval 'sub p_type () { &__p_type;}' unless defined(&p_type);
    eval 'sub p_query () { &__p_query;}' unless defined(&p_query);
    eval 'sub p_cdnname () { &__p_cdnname;}' unless defined(&p_cdnname);
    eval 'sub p_cdname () { &__p_cdname;}' unless defined(&p_cdname);
    eval 'sub p_fqnname () { &__p_fqnname;}' unless defined(&p_fqnname);
    eval 'sub p_fqname () { &__p_fqname;}' unless defined(&p_fqname);
    eval 'sub p_rr () { &__p_rr;}' unless defined(&p_rr);
    eval 'sub p_option () { &__p_option;}' unless defined(&p_option);
    eval 'sub p_secstodate () { &__p_secstodate;}' unless defined(&p_secstodate);
    eval 'sub dn_count_labels () { &__dn_count_labels;}' unless defined(&dn_count_labels);
    eval 'sub dn_comp () { &__dn_comp;}' unless defined(&dn_comp);
    eval 'sub res_randomid () { &__res_randomid;}' unless defined(&res_randomid);
    eval 'sub res_send () { &__res_send;}' unless defined(&res_send);
    eval 'sub res_isourserver () { &__res_isourserver;}' unless defined(&res_isourserver);
    eval 'sub res_nameinquery () { &__res_nameinquery;}' unless defined(&res_nameinquery);
    eval 'sub res_queriesmatch () { &__res_queriesmatch;}' unless defined(&res_queriesmatch);
    eval 'sub res_close () { &__res_close;}' unless defined(&res_close);
    eval 'sub res_opt () { &__res_opt;}' unless defined(&res_opt);
    if(defined(&BIND_RES_POSIX3)) {
	eval 'sub dn_expand () { &__dn_expand;}' unless defined(&dn_expand);
	eval 'sub res_init () { &__res_init;}' unless defined(&res_init);
	eval 'sub res_query () { &__res_query;}' unless defined(&res_query);
	eval 'sub res_search () { &__res_search;}' unless defined(&res_search);
	eval 'sub res_querydomain () { &__res_querydomain;}' unless defined(&res_querydomain);
	eval 'sub res_mkquery () { &__res_mkquery;}' unless defined(&res_mkquery);
    }
}
1;
