require '_h2ph_pre.ph';

unless(defined(&_VT_KERN_H)) {
    eval 'sub _VT_KERN_H () {1;}' unless defined(&_VT_KERN_H);
    require 'linux/config.ph';
    require 'linux/vt.ph';
    require 'linux/kd.ph';
    if(defined(&CONFIG_VGA_CONSOLE)) {
	eval 'sub BROKEN_GRAPHICS_PROGRAMS () {1;}' unless defined(&BROKEN_GRAPHICS_PROGRAMS);
    }
    eval 'sub vc_resize_all {
        local($l, $c) = @_;
	    eval q( &vc_resize($l, $c, 0,  &MAX_NR_CONSOLES-1));
    }' unless defined(&vc_resize_all);
    eval 'sub vc_resize_con {
        local($l, $c, $x) = @_;
	    eval q( &vc_resize($l, $c, $x, $x));
    }' unless defined(&vc_resize_con);
    eval 'sub update_screen {
        local($x) = @_;
	    eval q( &redraw_screen($x, 0));
    }' unless defined(&update_screen);
    eval 'sub switch_screen {
        local($x) = @_;
	    eval q( &redraw_screen($x, 1));
    }' unless defined(&switch_screen);
}
1;
