require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_MOUNT_H_RPCGEN)) {
    eval 'sub _MOUNT_H_RPCGEN () {1;}' unless defined(&_MOUNT_H_RPCGEN);
    eval 'sub RPCGEN_VERSION () {199506;}' unless defined(&RPCGEN_VERSION);
    require 'rpc/rpc.ph';
    eval 'sub MNTPATHLEN () {1024;}' unless defined(&MNTPATHLEN);
    eval 'sub MNTNAMLEN () {255;}' unless defined(&MNTNAMLEN);
    eval 'sub FHSIZE () {32;}' unless defined(&FHSIZE);
    eval 'sub FHSIZE3 () {64;}' unless defined(&FHSIZE3);
    eval("sub MNT3_OK () { 0; }") unless defined(&MNT3_OK);
    eval("sub MNT3ERR_PERM () { 1; }") unless defined(&MNT3ERR_PERM);
    eval("sub MNT3ERR_NOENT () { 2; }") unless defined(&MNT3ERR_NOENT);
    eval("sub MNT3ERR_IO () { 5; }") unless defined(&MNT3ERR_IO);
    eval("sub MNT3ERR_ACCES () { 13; }") unless defined(&MNT3ERR_ACCES);
    eval("sub MNT3ERR_NOTDIR () { 20; }") unless defined(&MNT3ERR_NOTDIR);
    eval("sub MNT3ERR_INVAL () { 22; }") unless defined(&MNT3ERR_INVAL);
    eval("sub MNT3ERR_NAMETOOLONG () { 63; }") unless defined(&MNT3ERR_NAMETOOLONG);
    eval("sub MNT3ERR_NOTSUPP () { 10004; }") unless defined(&MNT3ERR_NOTSUPP);
    eval("sub MNT3ERR_SERVERFAULT () { 10006; }") unless defined(&MNT3ERR_SERVERFAULT);
    eval 'sub MOUNTPROG () {100005;}' unless defined(&MOUNTPROG);
    eval 'sub MOUNTVERS () {1;}' unless defined(&MOUNTVERS);
    eval 'sub MOUNTPROC_NULL () {0;}' unless defined(&MOUNTPROC_NULL);
    eval 'sub MOUNTPROC_MNT () {1;}' unless defined(&MOUNTPROC_MNT);
    eval 'sub MOUNTPROC_DUMP () {2;}' unless defined(&MOUNTPROC_DUMP);
    eval 'sub MOUNTPROC_UMNT () {3;}' unless defined(&MOUNTPROC_UMNT);
    eval 'sub MOUNTPROC_UMNTALL () {4;}' unless defined(&MOUNTPROC_UMNTALL);
    eval 'sub MOUNTPROC_EXPORT () {5;}' unless defined(&MOUNTPROC_EXPORT);
    eval 'sub MOUNTPROC_EXPORTALL () {6;}' unless defined(&MOUNTPROC_EXPORTALL);
    eval 'sub MOUNTVERS3 () {3;}' unless defined(&MOUNTVERS3);
}
1;
