require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_UVM_UVM_SWAP_H_)) {
    eval 'sub _UVM_UVM_SWAP_H_ () {1;}' unless defined(&_UVM_UVM_SWAP_H_);
    eval 'sub SWSLOT_BAD () {(-1);}' unless defined(&SWSLOT_BAD);
    if(defined(&_KERNEL) || defined(&_MODULE)) {
	if(defined(&_KERNEL_OPT)) {
	    require './uvm/opt_vmswap.ph';
	}
	if(defined(&VMSWAP)) {
	} else {
	    eval 'sub uvm_swapisfull () {
	        eval q( &true);
	    }' unless defined(&uvm_swapisfull);
	    eval 'sub uvm_swap_stats {
	        my($c, $l, $f, $count, $retval) = @_;
    		eval q(( &__used $f, *$retval = 0,  &ENOSYS));
	    }' unless defined(&uvm_swap_stats);
	}
    }
}
1;
