require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_ARM_MUTEX_H_)) {
    eval 'sub _ARM_MUTEX_H_ () {1;}' unless defined(&_ARM_MUTEX_H_);
    require 'sys/types.ph';
    if(defined(&_KERNEL)) {
	require 'machine/intr.ph';
    }
    if(defined(&_KERNEL)) {
    }
    if(defined(&__MUTEX_PRIVATE)) {
	eval 'sub mtx_owner () { ($u->{mtxa_owner});}' unless defined(&mtx_owner);
	eval 'sub mtx_ipl () { ($u->{s}->{mtxs_ipl});}' unless defined(&mtx_ipl);
	eval 'sub mtx_lock () { ($u->{s}->{mtxs_lock});}' unless defined(&mtx_lock);
	if(0) {
	    eval 'sub __HAVE_MUTEX_STUBS () {1;}' unless defined(&__HAVE_MUTEX_STUBS);
	    eval 'sub __HAVE_SPIN_MUTEX_STUBS () {1;}' unless defined(&__HAVE_SPIN_MUTEX_STUBS);
	}
	eval 'sub __HAVE_SIMPLE_MUTEXES () {1;}' unless defined(&__HAVE_SIMPLE_MUTEXES);
    }
}
1;
