require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NETINET6_IP6PROTOSW_H_)) {
    eval 'sub _NETINET6_IP6PROTOSW_H_ () {1;}' unless defined(&_NETINET6_IP6PROTOSW_H_);
    if(defined(&_KERNEL)) {
	eval 'sub PR_WRAP_INPUT6 {
	    my($name) = @_;
    	    eval q( &static \'int\' $name &_wrapper(\'struct mbuf\' ** &mp, \'int\' * &offp, \'int\'  &proto) { \'int\'  &rv;  &mutex_enter( &softnet_lock);  &rv = $name( &mp,  &offp,  &proto);  &mutex_exit( &softnet_lock);  &return  &rv; });
	}' unless defined(&PR_WRAP_INPUT6);
    }
}
1;
