require '_h2ph_pre.ph';

unless(defined(&_LINUX_TTY_DRIVER_H)) {
    eval 'sub _LINUX_TTY_DRIVER_H () {1;}' unless defined(&_LINUX_TTY_DRIVER_H);
    require 'linux/fs.ph';
    eval 'sub TTY_DRIVER_MAGIC () {0x5402;}' unless defined(&TTY_DRIVER_MAGIC);
    eval 'sub TTY_DRIVER_INSTALLED () {0x1;}' unless defined(&TTY_DRIVER_INSTALLED);
    eval 'sub TTY_DRIVER_RESET_TERMIOS () {0x2;}' unless defined(&TTY_DRIVER_RESET_TERMIOS);
    eval 'sub TTY_DRIVER_REAL_RAW () {0x4;}' unless defined(&TTY_DRIVER_REAL_RAW);
    eval 'sub TTY_DRIVER_NO_DEVFS () {0x8;}' unless defined(&TTY_DRIVER_NO_DEVFS);
    eval 'sub TTY_DRIVER_TYPE_SYSTEM () {0x1;}' unless defined(&TTY_DRIVER_TYPE_SYSTEM);
    eval 'sub TTY_DRIVER_TYPE_CONSOLE () {0x2;}' unless defined(&TTY_DRIVER_TYPE_CONSOLE);
    eval 'sub TTY_DRIVER_TYPE_SERIAL () {0x3;}' unless defined(&TTY_DRIVER_TYPE_SERIAL);
    eval 'sub TTY_DRIVER_TYPE_PTY () {0x4;}' unless defined(&TTY_DRIVER_TYPE_PTY);
    eval 'sub TTY_DRIVER_TYPE_SCC () {0x5;}' unless defined(&TTY_DRIVER_TYPE_SCC);
    eval 'sub TTY_DRIVER_TYPE_SYSCONS () {0x6;}' unless defined(&TTY_DRIVER_TYPE_SYSCONS);
    eval 'sub SYSTEM_TYPE_TTY () {0x1;}' unless defined(&SYSTEM_TYPE_TTY);
    eval 'sub SYSTEM_TYPE_CONSOLE () {0x2;}' unless defined(&SYSTEM_TYPE_CONSOLE);
    eval 'sub SYSTEM_TYPE_SYSCONS () {0x3;}' unless defined(&SYSTEM_TYPE_SYSCONS);
    eval 'sub SYSTEM_TYPE_SYSPTMX () {0x4;}' unless defined(&SYSTEM_TYPE_SYSPTMX);
    eval 'sub PTY_TYPE_MASTER () {0x1;}' unless defined(&PTY_TYPE_MASTER);
    eval 'sub PTY_TYPE_SLAVE () {0x2;}' unless defined(&PTY_TYPE_SLAVE);
    eval 'sub SERIAL_TYPE_NORMAL () {1;}' unless defined(&SERIAL_TYPE_NORMAL);
    eval 'sub SERIAL_TYPE_CALLOUT () {2;}' unless defined(&SERIAL_TYPE_CALLOUT);
}
1;
