require '_h2ph_pre.ph';

unless(defined(&_MAC68K_Z8530VAR_H_)) {
    eval 'sub _MAC68K_Z8530VAR_H_ () {1;}' unless defined(&_MAC68K_Z8530VAR_H_);
    if(defined(&_KERNEL)) {
	require 'arch/mac68k/dev/z8530sc.ph';
	require 'arch/mac68k/dev/z8530tty.ph';
    }
    eval 'sub ZSABORT_DELAY () {3000000;}' unless defined(&ZSABORT_DELAY);
    if(defined(&_KERNEL)) {
    }
    eval 'sub ZSTTY_MAJOR () {12;}' unless defined(&ZSTTY_MAJOR);
    undef(&ZSTTY_DEF_CFLAG) if defined(&ZSTTY_DEF_CFLAG);
    eval 'sub ZSTTY_DEF_CFLAG () {( &CREAD |  &CS8 |  &HUPCL);}' unless defined(&ZSTTY_DEF_CFLAG);
    eval 'sub ZSTTY_RAW_CFLAG () {( &CS8 |  &CREAD |  &HUPCL );}' unless defined(&ZSTTY_RAW_CFLAG);
    eval 'sub ZSTTY_RAW_IFLAG () {( &IXANY |  &IMAXBEL);}' unless defined(&ZSTTY_RAW_IFLAG);
    eval 'sub ZSTTY_RAW_LFLAG () {( &ECHOE| &ECHOKE| &ECHOCTL);}' unless defined(&ZSTTY_RAW_LFLAG);
    eval 'sub ZSTTY_RAW_OFLAG () {( &ONLCR |  &OXTABS);}' unless defined(&ZSTTY_RAW_OFLAG);
    eval 'sub ZSMAC_RAW () {0x01;}' unless defined(&ZSMAC_RAW);
    eval 'sub ZSMAC_LOCALTALK () {0x02;}' unless defined(&ZSMAC_LOCALTALK);
    if(defined(&_KERNEL)) {
	eval 'sub zsprintf () { &printf;}' unless defined(&zsprintf);
    }
}
1;
