require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_RPC_RPCMSG_H)) {
    eval 'sub _RPC_RPCMSG_H () {1;}' unless defined(&_RPC_RPCMSG_H);
    eval 'sub RPC_MSG_VERSION () {( 2);}' unless defined(&RPC_MSG_VERSION);
    eval 'sub RPC_SERVICE_PORT () {( 2048);}' unless defined(&RPC_SERVICE_PORT);
    eval("sub CALL () { 0; }") unless defined(&CALL);
    eval("sub REPLY () { 1; }") unless defined(&REPLY);
    eval("sub MSG_ACCEPTED () { 0; }") unless defined(&MSG_ACCEPTED);
    eval("sub MSG_DENIED () { 1; }") unless defined(&MSG_DENIED);
    eval("sub SUCCESS () { 0; }") unless defined(&SUCCESS);
    eval("sub PROG_UNAVAIL () { 1; }") unless defined(&PROG_UNAVAIL);
    eval("sub PROG_MISMATCH () { 2; }") unless defined(&PROG_MISMATCH);
    eval("sub PROC_UNAVAIL () { 3; }") unless defined(&PROC_UNAVAIL);
    eval("sub GARBAGE_ARGS () { 4; }") unless defined(&GARBAGE_ARGS);
    eval("sub SYSTEM_ERR () { 5; }") unless defined(&SYSTEM_ERR);
    eval("sub RPC_MISMATCH () { 0; }") unless defined(&RPC_MISMATCH);
    eval("sub AUTH_ERROR () { 1; }") unless defined(&AUTH_ERROR);
    eval 'sub ar_results () { ($ru->{AR_results});}' unless defined(&ar_results);
    eval 'sub ar_vers () { ($ru->{AR_versions});}' unless defined(&ar_vers);
    eval 'sub rj_vers () { ($ru->{RJ_versions});}' unless defined(&rj_vers);
    eval 'sub rj_why () { ($ru->{RJ_why});}' unless defined(&rj_why);
    eval 'sub rp_acpt () { ($ru->{RP_ar});}' unless defined(&rp_acpt);
    eval 'sub rp_rjct () { ($ru->{RP_dr});}' unless defined(&rp_rjct);
    eval 'sub rm_call () { ($ru->{RM_cmb});}' unless defined(&rm_call);
    eval 'sub rm_reply () { ($ru->{RM_rmb});}' unless defined(&rm_reply);
    eval 'sub acpted_rply () { ($ru->{RM_rmb}->{ru}->{RP_ar});}' unless defined(&acpted_rply);
    eval 'sub rjcted_rply () { ($ru->{RM_rmb}->{ru}->{RP_dr});}' unless defined(&rjcted_rply);
}
1;
