require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_FDIO_H_)) {
    eval 'sub _SYS_FDIO_H_ () {1;}' unless defined(&_SYS_FDIO_H_);
    require 'sys/ioccom.ph';
    eval("sub FDFORMAT_SUCCESS () { 0; }") unless defined(&FDFORMAT_SUCCESS);
    eval("sub FDFORMAT_MEDIA_ERROR () { 1; }") unless defined(&FDFORMAT_MEDIA_ERROR);
    eval("sub FDFORMAT_CONFIG_ERROR () { 2; }") unless defined(&FDFORMAT_CONFIG_ERROR);
    eval 'sub FDFORMAT_VERSION () {19961120;}' unless defined(&FDFORMAT_VERSION);
    eval 'sub FDOPT_NORETRY () {0x1;}' unless defined(&FDOPT_NORETRY);
    eval 'sub FDOPT_SILENT () {0x2;}' unless defined(&FDOPT_SILENT);
    eval 'sub FDIOCGETOPTS () { &_IOR(ord(\'d\'), 114, \'int\');}' unless defined(&FDIOCGETOPTS);
    eval 'sub FDIOCSETOPTS () { &_IOW(ord(\'d\'), 115, \'int\');}' unless defined(&FDIOCSETOPTS);
    eval 'sub FDIOCSETFORMAT () { &_IOW(ord(\'d\'), 116, \'struct fdformat_parms\');}' unless defined(&FDIOCSETFORMAT);
    eval 'sub FDIOCGETFORMAT () { &_IOR(ord(\'d\'), 117, \'struct fdformat_parms\');}' unless defined(&FDIOCGETFORMAT);
    eval 'sub FDIOCFORMAT_TRACK () { &_IOW(ord(\'d\'), 118, \'struct fdformat_cmd\');}' unless defined(&FDIOCFORMAT_TRACK);
}
1;
