require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_PROTOCOLS_DUMPRESTORE_H_)) {
    eval 'sub _PROTOCOLS_DUMPRESTORE_H_ () {1;}' unless defined(&_PROTOCOLS_DUMPRESTORE_H_);
    eval 'sub TP_BSIZE () {1024;}' unless defined(&TP_BSIZE);
    eval 'sub NTREC () {10;}' unless defined(&NTREC);
    eval 'sub HIGHDENSITYTREC () {32;}' unless defined(&HIGHDENSITYTREC);
    eval 'sub TP_NINDIR () {( &TP_BSIZE/2);}' unless defined(&TP_NINDIR);
    eval 'sub LBLSIZE () {16;}' unless defined(&LBLSIZE);
    eval 'sub NAMELEN () {64;}' unless defined(&NAMELEN);
    eval 'sub OFS_MAGIC () {60011;}' unless defined(&OFS_MAGIC);
    eval 'sub NFS_MAGIC () {60012;}' unless defined(&NFS_MAGIC);
    unless(defined(&FS_UFS2_MAGIC)) {
	eval 'sub FS_UFS2_MAGIC () {0x19540119;}' unless defined(&FS_UFS2_MAGIC);
    }
    eval 'sub CHECKSUM () {84446;}' unless defined(&CHECKSUM);
    eval 'sub spcl () { ($u_spcl->{s_spcl});}' unless defined(&spcl);
    eval 'sub c_dinode () { ($__c_ino->{__uc_dinode});}' unless defined(&c_dinode);
    eval 'sub c_mode () { ($__c_ino->{__uc_ino}->{__uc_mode});}' unless defined(&c_mode);
    eval 'sub c_spare1 () { ($__c_ino->{__uc_ino}->{__uc_spare1});}' unless defined(&c_spare1);
    eval 'sub c_size () { ($__c_ino->{__uc_ino}->{__uc_size});}' unless defined(&c_size);
    eval 'sub c_old_atime () { ($__c_ino->{__uc_ino}->{__uc_old_atime});}' unless defined(&c_old_atime);
    eval 'sub c_atime () { ($__c_ino->{__uc_ino}->{__uc_atime});}' unless defined(&c_atime);
    eval 'sub c_atimensec () { ($__c_ino->{__uc_ino}->{__uc_atimensec});}' unless defined(&c_atimensec);
    eval 'sub c_mtime () { ($__c_ino->{__uc_ino}->{__uc_mtime});}' unless defined(&c_mtime);
    eval 'sub c_mtimensec () { ($__c_ino->{__uc_ino}->{__uc_mtimensec});}' unless defined(&c_mtimensec);
    eval 'sub c_birthtime () { ($__c_ino->{__uc_ino}->{__uc_birthtime});}' unless defined(&c_birthtime);
    eval 'sub c_birthtimensec () { ($__c_ino->{__uc_ino}->{__uc_birthtimensec});}' unless defined(&c_birthtimensec);
    eval 'sub c_old_mtime () { ($__c_ino->{__uc_ino}->{__uc_old_mtime});}' unless defined(&c_old_mtime);
    eval 'sub c_rdev () { ($__c_ino->{__uc_ino}->{__uc_rdev});}' unless defined(&c_rdev);
    eval 'sub c_file_flags () { ($__c_ino->{__uc_ino}->{__uc_file_flags});}' unless defined(&c_file_flags);
    eval 'sub c_uid () { ($__c_ino->{__uc_ino}->{__uc_uid});}' unless defined(&c_uid);
    eval 'sub c_gid () { ($__c_ino->{__uc_ino}->{__uc_gid});}' unless defined(&c_gid);
    eval 'sub TS_TAPE () {1;}' unless defined(&TS_TAPE);
    eval 'sub TS_INODE () {2;}' unless defined(&TS_INODE);
    eval 'sub TS_ADDR () {4;}' unless defined(&TS_ADDR);
    eval 'sub TS_BITS () {3;}' unless defined(&TS_BITS);
    eval 'sub TS_CLRI () {6;}' unless defined(&TS_CLRI);
    eval 'sub TS_END () {5;}' unless defined(&TS_END);
    eval 'sub DR_NEWHEADER () {0x1;}' unless defined(&DR_NEWHEADER);
    eval 'sub DR_NEWINODEFMT () {0x2;}' unless defined(&DR_NEWINODEFMT);
    eval 'sub DUMPOUTFMT () {"%-16s %c %s";}' unless defined(&DUMPOUTFMT);
    eval 'sub DUMPINFMT () {"%16s %c %[^\\n]\\n";}' unless defined(&DUMPINFMT);
}
1;
