require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_MALLOCVAR_H_)) {
    eval 'sub _SYS_MALLOCVAR_H_ () {1;}' unless defined(&_SYS_MALLOCVAR_H_);
    require 'sys/types.ph';
    if(defined(&_KERNEL)) {
	eval 'sub MALLOC_JUSTDEFINE {
	    my($type, $shortdesc, $longdesc) = @_;
    	    eval q();
	}' unless defined(&MALLOC_JUSTDEFINE);
	eval 'sub MALLOC_DEFINE {
	    my($type, $shortdesc, $longdesc) = @_;
    	    eval q();
	}' unless defined(&MALLOC_DEFINE);
	eval 'sub MALLOC_DECLARE {
	    my($type) = @_;
    	    eval q( &static \'struct malloc_type\' * &const  &__unused $type = 0);
	}' unless defined(&MALLOC_DECLARE);
	eval 'sub malloc_type_attach {
	    my($malloc_type) = @_;
    	    eval q();
	}' unless defined(&malloc_type_attach);
	eval 'sub malloc_type_detach {
	    my($malloc_type) = @_;
    	    eval q();
	}' unless defined(&malloc_type_detach);
    }
}
1;
