require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__MIPS64_ATOMIC_H__)) {
    eval 'sub __MIPS64_ATOMIC_H__ () {1;}' unless defined(&__MIPS64_ATOMIC_H__);
    if(defined( &_KERNEL)) {
	eval 'sub atomic_setbits_int {
	    my($uip,$v) = @_;
    	    eval q({ *$uip |= $v; });
	}' unless defined(&atomic_setbits_int);
	eval 'sub atomic_clearbits_int {
	    my($uip,$v) = @_;
    	    eval q({ *$uip &= ~$v; });
	}' unless defined(&atomic_clearbits_int);
    }
}
1;
