require '_h2ph_pre.ph';

unless(defined(&_ZFTAPE_H)) {
    eval 'sub _ZFTAPE_H () {1;}' unless defined(&_ZFTAPE_H);
    eval 'sub ZFTAPE_VERSION () {"zftape for "  &FTAPE_VERSION;}' unless defined(&ZFTAPE_VERSION);
    require 'linux/ftape.ph';
    eval 'sub ZFTAPE_LABEL () {"Ftape - The Linux Floppy Tape Project!";}' unless defined(&ZFTAPE_LABEL);
    eval 'sub ZFT_Q80_MODE () {(1<< 3);}' unless defined(&ZFT_Q80_MODE);
    eval 'sub ZFT_ZIP_MODE () {(1<< 4);}' unless defined(&ZFT_ZIP_MODE);
    eval 'sub ZFT_RAW_MODE () {(1<< 5);}' unless defined(&ZFT_RAW_MODE);
    eval 'sub ZFT_MINOR_OP_MASK () {( &ZFT_Q80_MODE |  &ZFT_ZIP_MODE |  &ZFT_RAW_MODE);}' unless defined(&ZFT_MINOR_OP_MASK);
    eval 'sub ZFT_MINOR_MASK () {( &FTAPE_SEL_MASK |  &ZFT_MINOR_OP_MASK |  &FTAPE_NO_REWIND);}' unless defined(&ZFT_MINOR_MASK);
    if(defined(&ZFT_OBSOLETE)) {
	eval 'sub MTIOC_ZFTAPE_GETBLKSZ () { &_IOR(ord(\'m\'), 104, \'struct mtblksz\');}' unless defined(&MTIOC_ZFTAPE_GETBLKSZ);
    }
}
1;
