require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&pcap_int_h)) {
    eval 'sub pcap_int_h () {1;}' unless defined(&pcap_int_h);
    require 'pcap.ph';
    if(defined(&linux)) {
    }
    unless(defined(&min)) {
	eval 'sub min {
	    my($a, $b) = @_;
    	    eval q((($a) > ($b) ? ($b) : ($a)));
	}' unless defined(&min);
    }
    if(defined(&IFF_LOOPBACK)) {
	eval 'sub ISLOOPBACK {
	    my($name, $flags) = @_;
    	    eval q((($flags) &  &IFF_LOOPBACK));
	}' unless defined(&ISLOOPBACK);
    } else {
	eval 'sub ISLOOPBACK {
	    my($name, $flags) = @_;
    	    eval q(([0] == ord(\'l\' && [1] == \'o\' &&     (isdigit(((name)[2])) || (name)[2] == \'\\\\0\'))));
	}' unless defined(&ISLOOPBACK);
    }
    if(defined( &ultrix) || defined( &__alpha)) {
	eval 'sub PCAP_FDDIPAD () {3;}' unless defined(&PCAP_FDDIPAD);
    }
}
1;
