require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NETINET_IGMP_VAR_H_)) {
    eval 'sub _NETINET_IGMP_VAR_H_ () {1;}' unless defined(&_NETINET_IGMP_VAR_H_);
    eval 'sub IGMP_STAT_RCV_TOTAL () {1;}' unless defined(&IGMP_STAT_RCV_TOTAL);
    eval 'sub IGMP_STAT_RCV_TOOSHORT () {2;}' unless defined(&IGMP_STAT_RCV_TOOSHORT);
    eval 'sub IGMP_STAT_RCV_BADSUM () {3;}' unless defined(&IGMP_STAT_RCV_BADSUM);
    eval 'sub IGMP_STAT_RCV_QUERIES () {4;}' unless defined(&IGMP_STAT_RCV_QUERIES);
    eval 'sub IGMP_STAT_RCV_BADQUERIES () {5;}' unless defined(&IGMP_STAT_RCV_BADQUERIES);
    eval 'sub IGMP_STAT_RCV_REPORTS () {6;}' unless defined(&IGMP_STAT_RCV_REPORTS);
    eval 'sub IGMP_STAT_RCV_BADREPORTS () {7;}' unless defined(&IGMP_STAT_RCV_BADREPORTS);
    eval 'sub IGMP_STAT_RCV_OURREPORTS () {8;}' unless defined(&IGMP_STAT_RCV_OURREPORTS);
    eval 'sub IGMP_STAT_SND_REPORTS () {9;}' unless defined(&IGMP_STAT_SND_REPORTS);
    eval 'sub IGMP_NSTATS () {10;}' unless defined(&IGMP_NSTATS);
    if(defined(&_KERNEL)) {
	eval 'sub IGMP_RANDOM_DELAY {
	    my($X) = @_;
    	    eval q(( &cprng_fast32() % ($X) + 1));
	}' unless defined(&IGMP_RANDOM_DELAY);
    }
}
1;
