require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_RPC_CLNT_H_)) {
    eval 'sub _RPC_CLNT_H_ () {1;}' unless defined(&_RPC_CLNT_H_);
    require 'sys/cdefs.ph';
    eval("sub RPC_SUCCESS () { 0; }") unless defined(&RPC_SUCCESS);
    eval("sub RPC_CANTENCODEARGS () { 1; }") unless defined(&RPC_CANTENCODEARGS);
    eval("sub RPC_CANTDECODERES () { 2; }") unless defined(&RPC_CANTDECODERES);
    eval("sub RPC_CANTSEND () { 3; }") unless defined(&RPC_CANTSEND);
    eval("sub RPC_CANTRECV () { 4; }") unless defined(&RPC_CANTRECV);
    eval("sub RPC_TIMEDOUT () { 5; }") unless defined(&RPC_TIMEDOUT);
    eval("sub RPC_VERSMISMATCH () { 6; }") unless defined(&RPC_VERSMISMATCH);
    eval("sub RPC_AUTHERROR () { 7; }") unless defined(&RPC_AUTHERROR);
    eval("sub RPC_PROGUNAVAIL () { 8; }") unless defined(&RPC_PROGUNAVAIL);
    eval("sub RPC_PROGVERSMISMATCH () { 9; }") unless defined(&RPC_PROGVERSMISMATCH);
    eval("sub RPC_PROCUNAVAIL () { 10; }") unless defined(&RPC_PROCUNAVAIL);
    eval("sub RPC_CANTDECODEARGS () { 11; }") unless defined(&RPC_CANTDECODEARGS);
    eval("sub RPC_SYSTEMERROR () { 12; }") unless defined(&RPC_SYSTEMERROR);
    eval("sub RPC_UNKNOWNHOST () { 13; }") unless defined(&RPC_UNKNOWNHOST);
    eval("sub RPC_UNKNOWNPROTO () { 17; }") unless defined(&RPC_UNKNOWNPROTO);
    eval("sub RPC_PMAPFAILURE () { 14; }") unless defined(&RPC_PMAPFAILURE);
    eval("sub RPC_PROGNOTREGISTERED () { 15; }") unless defined(&RPC_PROGNOTREGISTERED);
    eval("sub RPC_FAILED () { 16; }") unless defined(&RPC_FAILED);
    eval 'sub re_errno () { ($ru->{RE_errno});}' unless defined(&re_errno);
    eval 'sub re_why () { ($ru->{RE_why});}' unless defined(&re_why);
    eval 'sub re_vers () { ($ru->{RE_vers});}' unless defined(&re_vers);
    eval 'sub re_lb () { ($ru->{RE_lb});}' unless defined(&re_lb);
    eval 'sub CLNT_CALL {
        my($rh, $proc, $xargs, $argsp, $xres, $resp, $secs) = @_;
	    eval q(((*-> ($cl_ops->{cl_call}))($rh, $proc, $xargs, $argsp, $xres, $resp, $secs)));
    }' unless defined(&CLNT_CALL);
    eval 'sub clnt_call {
        my($rh, $proc, $xargs, $argsp, $xres, $resp, $secs) = @_;
	    eval q(((*-> ($cl_ops->{cl_call}))($rh, $proc, $xargs, $argsp, $xres, $resp, $secs)));
    }' unless defined(&clnt_call);
    eval 'sub CLNT_ABORT {
        my($rh) = @_;
	    eval q(((*($rh)-> ($cl_ops->{cl_abort}))($rh)));
    }' unless defined(&CLNT_ABORT);
    eval 'sub clnt_abort {
        my($rh) = @_;
	    eval q(((*($rh)-> ($cl_ops->{cl_abort}))($rh)));
    }' unless defined(&clnt_abort);
    eval 'sub CLNT_GETERR {
        my($rh,$errp) = @_;
	    eval q(((*($rh)-> ($cl_ops->{cl_geterr}))($rh, $errp)));
    }' unless defined(&CLNT_GETERR);
    eval 'sub clnt_geterr {
        my($rh,$errp) = @_;
	    eval q(((*($rh)-> ($cl_ops->{cl_geterr}))($rh, $errp)));
    }' unless defined(&clnt_geterr);
    eval 'sub CLNT_FREERES {
        my($rh,$xres,$resp) = @_;
	    eval q(((*($rh)-> ($cl_ops->{cl_freeres}))($rh,$xres,$resp)));
    }' unless defined(&CLNT_FREERES);
    eval 'sub clnt_freeres {
        my($rh,$xres,$resp) = @_;
	    eval q(((*($rh)-> ($cl_ops->{cl_freeres}))($rh,$xres,$resp)));
    }' unless defined(&clnt_freeres);
    eval 'sub CLNT_CONTROL {
        my($cl,$rq,$in) = @_;
	    eval q(((*($cl)-> ($cl_ops->{cl_control}))($cl,$rq,$in)));
    }' unless defined(&CLNT_CONTROL);
    eval 'sub clnt_control {
        my($cl,$rq,$in) = @_;
	    eval q(((*($cl)-> ($cl_ops->{cl_control}))($cl,$rq,$in)));
    }' unless defined(&clnt_control);
    eval 'sub CLSET_TIMEOUT () {1;}' unless defined(&CLSET_TIMEOUT);
    eval 'sub CLGET_TIMEOUT () {2;}' unless defined(&CLGET_TIMEOUT);
    eval 'sub CLGET_SERVER_ADDR () {3;}' unless defined(&CLGET_SERVER_ADDR);
    eval 'sub CLSET_RETRY_TIMEOUT () {4;}' unless defined(&CLSET_RETRY_TIMEOUT);
    eval 'sub CLGET_RETRY_TIMEOUT () {5;}' unless defined(&CLGET_RETRY_TIMEOUT);
    eval 'sub CLNT_DESTROY {
        my($rh) = @_;
	    eval q(((*($rh)-> ($cl_ops->{cl_destroy}))($rh)));
    }' unless defined(&CLNT_DESTROY);
    eval 'sub clnt_destroy {
        my($rh) = @_;
	    eval q(((*($rh)-> ($cl_ops->{cl_destroy}))($rh)));
    }' unless defined(&clnt_destroy);
    eval 'sub RPCTEST_PROGRAM () {(1);}' unless defined(&RPCTEST_PROGRAM);
    eval 'sub RPCTEST_VERSION () {(1);}' unless defined(&RPCTEST_VERSION);
    eval 'sub RPCTEST_NULL_PROC () {(2);}' unless defined(&RPCTEST_NULL_PROC);
    eval 'sub RPCTEST_NULL_BATCH_PROC () {(3);}' unless defined(&RPCTEST_NULL_BATCH_PROC);
    eval 'sub NULLPROC () {(0);}' unless defined(&NULLPROC);
    eval 'sub UDPMSGSIZE () {8800;}' unless defined(&UDPMSGSIZE);
    eval 'sub RPCSMALLMSGSIZE () {400;}' unless defined(&RPCSMALLMSGSIZE);
}
1;
