require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SPARC64_INTR_H_)) {
    eval 'sub _SPARC64_INTR_H_ () {1;}' unless defined(&_SPARC64_INTR_H_);
    unless(defined(&_SPARC64_INTREG_H_)) {
	require 'sparc64/sparc64/intreg.ph';
    }
    require 'sys/evcount.ph';
    eval 'sub IPL_NONE () {0;}' unless defined(&IPL_NONE);
    eval 'sub IPL_SOFTINT () {1;}' unless defined(&IPL_SOFTINT);
    eval 'sub IPL_SOFTCLOCK () {1;}' unless defined(&IPL_SOFTCLOCK);
    eval 'sub IPL_SOFTNET () {1;}' unless defined(&IPL_SOFTNET);
    eval 'sub IPL_BIO () { &PIL_BIO;}' unless defined(&IPL_BIO);
    eval 'sub IPL_NET () { &PIL_NET;}' unless defined(&IPL_NET);
    eval 'sub IPL_SOFTTTY () {4;}' unless defined(&IPL_SOFTTTY);
    eval 'sub IPL_TTY () { &PIL_TTY;}' unless defined(&IPL_TTY);
    eval 'sub IPL_VM () { &PIL_VM;}' unless defined(&IPL_VM);
    eval 'sub IPL_AUDIO () { &PIL_AUD;}' unless defined(&IPL_AUDIO);
    eval 'sub IPL_CLOCK () { &PIL_CLOCK;}' unless defined(&IPL_CLOCK);
    eval 'sub IPL_SERIAL () { &PIL_SER;}' unless defined(&IPL_SERIAL);
    eval 'sub IPL_SCHED () { &PIL_SCHED;}' unless defined(&IPL_SCHED);
    eval 'sub IPL_LOCK () { &PIL_LOCK;}' unless defined(&IPL_LOCK);
    eval 'sub IPL_STATCLOCK () { &PIL_STATCLOCK;}' unless defined(&IPL_STATCLOCK);
    eval 'sub IPL_HIGH () { &PIL_HIGH;}' unless defined(&IPL_HIGH);
}
1;
