require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_RPC_XDR_H)) {
    eval 'sub _RPC_XDR_H () {1;}' unless defined(&_RPC_XDR_H);
    require 'sys/cdefs.ph';
    eval("sub XDR_ENCODE () { 0; }") unless defined(&XDR_ENCODE);
    eval("sub XDR_DECODE () { 1; }") unless defined(&XDR_DECODE);
    eval("sub XDR_FREE () { 2; }") unless defined(&XDR_FREE);
    eval 'sub BYTES_PER_XDR_UNIT () {(4);}' unless defined(&BYTES_PER_XDR_UNIT);
    eval 'sub RNDUP {
        my($x) = @_;
	    eval q((((($x) +  &BYTES_PER_XDR_UNIT - 1) /  &BYTES_PER_XDR_UNIT) *  &BYTES_PER_XDR_UNIT));
    }' unless defined(&RNDUP);
    eval 'sub XDR_GETLONG {
        my($xdrs, $longp) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_getlong}))($xdrs, $longp));
    }' unless defined(&XDR_GETLONG);
    eval 'sub xdr_getlong {
        my($xdrs, $longp) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_getlong}))($xdrs, $longp));
    }' unless defined(&xdr_getlong);
    eval 'sub XDR_PUTLONG {
        my($xdrs, $longp) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_putlong}))($xdrs, $longp));
    }' unless defined(&XDR_PUTLONG);
    eval 'sub xdr_putlong {
        my($xdrs, $longp) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_putlong}))($xdrs, $longp));
    }' unless defined(&xdr_putlong);
    eval 'sub XDR_GETBYTES {
        my($xdrs, $addr, $len) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_getbytes}))($xdrs, $addr, $len));
    }' unless defined(&XDR_GETBYTES);
    eval 'sub xdr_getbytes {
        my($xdrs, $addr, $len) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_getbytes}))($xdrs, $addr, $len));
    }' unless defined(&xdr_getbytes);
    eval 'sub XDR_PUTBYTES {
        my($xdrs, $addr, $len) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_putbytes}))($xdrs, $addr, $len));
    }' unless defined(&XDR_PUTBYTES);
    eval 'sub xdr_putbytes {
        my($xdrs, $addr, $len) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_putbytes}))($xdrs, $addr, $len));
    }' unless defined(&xdr_putbytes);
    eval 'sub XDR_GETPOS {
        my($xdrs) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_getpostn}))($xdrs));
    }' unless defined(&XDR_GETPOS);
    eval 'sub xdr_getpos {
        my($xdrs) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_getpostn}))($xdrs));
    }' unless defined(&xdr_getpos);
    eval 'sub XDR_SETPOS {
        my($xdrs, $pos) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_setpostn}))($xdrs, $pos));
    }' unless defined(&XDR_SETPOS);
    eval 'sub xdr_setpos {
        my($xdrs, $pos) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_setpostn}))($xdrs, $pos));
    }' unless defined(&xdr_setpos);
    eval 'sub XDR_INLINE {
        my($xdrs, $len) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_inline}))($xdrs, $len));
    }' unless defined(&XDR_INLINE);
    eval 'sub xdr_inline {
        my($xdrs, $len) = @_;
	    eval q((*($xdrs)-> ($x_ops->{x_inline}))($xdrs, $len));
    }' unless defined(&xdr_inline);
    eval 'sub XDR_DESTROY {
        my($xdrs) = @_;
	    eval q( &if (($xdrs)-> ($x_ops->{x_destroy})) (*($xdrs)-> ($x_ops->{x_destroy}))($xdrs));
    }' unless defined(&XDR_DESTROY);
    eval 'sub xdr_destroy {
        my($xdrs) = @_;
	    eval q( &if (($xdrs)-> ($x_ops->{x_destroy})) (*($xdrs)-> ($x_ops->{x_destroy}))($xdrs));
    }' unless defined(&xdr_destroy);
    eval 'sub NULL_xdrproc_t () {(( &xdrproc_t)0);}' unless defined(&NULL_xdrproc_t);
    eval 'sub IXDR_GET_LONG {
        my($buf) = @_;
	    eval q(( &ntohl(*($buf)++)));
    }' unless defined(&IXDR_GET_LONG);
    eval 'sub IXDR_PUT_LONG {
        my($buf, $v) = @_;
	    eval q((*++ =  &htonl($v)));
    }' unless defined(&IXDR_PUT_LONG);
    eval 'sub IXDR_GET_BOOL {
        my($buf) = @_;
	    eval q((( &bool_t) &IXDR_GET_LONG($buf)));
    }' unless defined(&IXDR_GET_BOOL);
    eval 'sub IXDR_GET_ENUM {
        my($buf, $t) = @_;
	    eval q((($t) &IXDR_GET_LONG($buf)));
    }' unless defined(&IXDR_GET_ENUM);
    eval 'sub IXDR_GET_U_LONG {
        my($buf) = @_;
	    eval q(( &IXDR_GET_LONG($buf)));
    }' unless defined(&IXDR_GET_U_LONG);
    eval 'sub IXDR_GET_SHORT {
        my($buf) = @_;
	    eval q(( &IXDR_GET_LONG($buf)));
    }' unless defined(&IXDR_GET_SHORT);
    eval 'sub IXDR_GET_U_SHORT {
        my($buf) = @_;
	    eval q(( &IXDR_GET_LONG($buf)));
    }' unless defined(&IXDR_GET_U_SHORT);
    eval 'sub IXDR_PUT_BOOL {
        my($buf, $v) = @_;
	    eval q( &IXDR_PUT_LONG(, (($v))));
    }' unless defined(&IXDR_PUT_BOOL);
    eval 'sub IXDR_PUT_ENUM {
        my($buf, $v) = @_;
	    eval q( &IXDR_PUT_LONG(, (($v))));
    }' unless defined(&IXDR_PUT_ENUM);
    eval 'sub IXDR_PUT_U_LONG {
        my($buf, $v) = @_;
	    eval q( &IXDR_PUT_LONG(, (($v))));
    }' unless defined(&IXDR_PUT_U_LONG);
    eval 'sub IXDR_PUT_SHORT {
        my($buf, $v) = @_;
	    eval q( &IXDR_PUT_LONG(, (($v))));
    }' unless defined(&IXDR_PUT_SHORT);
    eval 'sub IXDR_PUT_U_SHORT {
        my($buf, $v) = @_;
	    eval q( &IXDR_PUT_LONG(, (($v))));
    }' unless defined(&IXDR_PUT_U_SHORT);
    eval 'sub MAX_NETOBJ_SZ () {1024;}' unless defined(&MAX_NETOBJ_SZ);
    if(defined(&_STDIO_H_)) {
    }
}
1;
