require '_h2ph_pre.ph';

unless(defined(&_VM_PAGER_)) {
    eval 'sub _VM_PAGER_ () {1;}' unless defined(&_VM_PAGER_);
    if(!defined( &UVM)) {
	eval 'sub PG_DFLT () {-1;}' unless defined(&PG_DFLT);
	eval 'sub PG_SWAP () {0;}' unless defined(&PG_SWAP);
	eval 'sub PG_VNODE () {1;}' unless defined(&PG_VNODE);
	eval 'sub PG_DEVICE () {2;}' unless defined(&PG_DEVICE);
	eval 'sub PG_CLUSTERGET () {1;}' unless defined(&PG_CLUSTERGET);
	eval 'sub PG_CLUSTERPUT () {2;}' unless defined(&PG_CLUSTERPUT);
    }
    eval 'sub VM_PAGER_OK () {0;}' unless defined(&VM_PAGER_OK);
    eval 'sub VM_PAGER_BAD () {1;}' unless defined(&VM_PAGER_BAD);
    eval 'sub VM_PAGER_FAIL () {2;}' unless defined(&VM_PAGER_FAIL);
    eval 'sub VM_PAGER_PEND () {3;}' unless defined(&VM_PAGER_PEND);
    eval 'sub VM_PAGER_ERROR () {4;}' unless defined(&VM_PAGER_ERROR);
    eval 'sub VM_PAGER_AGAIN () {5;}' unless defined(&VM_PAGER_AGAIN);
    eval 'sub VM_PAGER_UNLOCK () {6;}' unless defined(&VM_PAGER_UNLOCK);
    eval 'sub VM_PAGER_REFAULT () {7;}' unless defined(&VM_PAGER_REFAULT);
    if(defined( &_KERNEL)  && !defined( &UVM)) {
	eval 'sub vm_pager_cancluster {
	    local($p, $b) = @_;
    	    eval q((($p)-> &pg_flags & ($b)));
	}' unless defined(&vm_pager_cancluster);
    }
}
1;
