require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_DEV_VSCSIVAR_H)) {
    eval 'sub _SYS_DEV_VSCSIVAR_H () {1;}' unless defined(&_SYS_DEV_VSCSIVAR_H);
    eval 'sub VSCSI_DIR_NONE () {0;}' unless defined(&VSCSI_DIR_NONE);
    eval 'sub VSCSI_DIR_READ () {1;}' unless defined(&VSCSI_DIR_READ);
    eval 'sub VSCSI_DIR_WRITE () {2;}' unless defined(&VSCSI_DIR_WRITE);
    eval 'sub VSCSI_I2T () { &_IOR(ord(\'I\'), 0, \'struct vscsi_ioc_i2t\');}' unless defined(&VSCSI_I2T);
    eval 'sub VSCSI_DATA_READ () { &_IOW(ord(\'I\'), 1, \'struct vscsi_ioc_data\');}' unless defined(&VSCSI_DATA_READ);
    eval 'sub VSCSI_DATA_WRITE () { &_IOW(ord(\'I\'), 2, \'struct vscsi_ioc_data\');}' unless defined(&VSCSI_DATA_WRITE);
    eval 'sub VSCSI_STAT_DONE () {0;}' unless defined(&VSCSI_STAT_DONE);
    eval 'sub VSCSI_STAT_SENSE () {1;}' unless defined(&VSCSI_STAT_SENSE);
    eval 'sub VSCSI_STAT_ERR () {2;}' unless defined(&VSCSI_STAT_ERR);
    eval 'sub VSCSI_T2I () { &_IOW(ord(\'I\'), 3, \'struct vscsi_ioc_t2i\');}' unless defined(&VSCSI_T2I);
    eval 'sub VSCSI_REQPROBE () { &_IOW(ord(\'I\'), 4, \'struct vscsi_ioc_devevent\');}' unless defined(&VSCSI_REQPROBE);
    eval 'sub VSCSI_REQDETACH () { &_IOW(ord(\'I\'), 5, \'struct vscsi_ioc_devevent\');}' unless defined(&VSCSI_REQDETACH);
}
1;
