require '_h2ph_pre.ph';

unless(defined(&_SYS_USER_H)) {
    eval 'sub _SYS_USER_H () {1;}' unless defined(&_SYS_USER_H);
    eval 'sub PAGE_SHIFT () {12;}' unless defined(&PAGE_SHIFT);
    eval 'sub PAGE_SIZE () {(1 <<  &PAGE_SHIFT);}' unless defined(&PAGE_SIZE);
    eval 'sub PAGE_MASK () {(~( &PAGE_SIZE-1));}' unless defined(&PAGE_MASK);
    eval 'sub NBPG () { &PAGE_SIZE;}' unless defined(&NBPG);
    eval 'sub UPAGES () {1;}' unless defined(&UPAGES);
    eval 'sub HOST_TEXT_START_ADDR () {( ($u->{start_code}));}' unless defined(&HOST_TEXT_START_ADDR);
    eval 'sub HOST_STACK_END_ADDR () {( ($u->{start_stack}) +  ($u->{u_ssize}) *  &NBPG);}' unless defined(&HOST_STACK_END_ADDR);
}
1;
