require '_h2ph_pre.ph';

unless(defined(&GENERIC_SERIAL_H)) {
    eval 'sub GENERIC_SERIAL_H () {1;}' unless defined(&GENERIC_SERIAL_H);
    eval 'sub GS_TX_INTEN () {0x800000;}' unless defined(&GS_TX_INTEN);
    eval 'sub GS_RX_INTEN () {0x400000;}' unless defined(&GS_RX_INTEN);
    eval 'sub GS_ACTIVE () {0x200000;}' unless defined(&GS_ACTIVE);
    eval 'sub GS_TYPE_NORMAL () {1;}' unless defined(&GS_TYPE_NORMAL);
    eval 'sub GS_TYPE_CALLOUT () {2;}' unless defined(&GS_TYPE_CALLOUT);
    eval 'sub GS_DEBUG_FLUSH () {0x1;}' unless defined(&GS_DEBUG_FLUSH);
    eval 'sub GS_DEBUG_BTR () {0x2;}' unless defined(&GS_DEBUG_BTR);
    eval 'sub GS_DEBUG_TERMIOS () {0x4;}' unless defined(&GS_DEBUG_TERMIOS);
    eval 'sub GS_DEBUG_STUFF () {0x8;}' unless defined(&GS_DEBUG_STUFF);
    eval 'sub GS_DEBUG_CLOSE () {0x10;}' unless defined(&GS_DEBUG_CLOSE);
    eval 'sub GS_DEBUG_FLOW () {0x20;}' unless defined(&GS_DEBUG_FLOW);
}
1;
