require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NETINET_IF_ETHER_H_)) {
    eval 'sub _NETINET_IF_ETHER_H_ () {1;}' unless defined(&_NETINET_IF_ETHER_H_);
    if(defined(&_KERNEL)) {
	die("You\ should\ NOT\ be\ doing\ this\.");
    }
    unless(defined(&_netinet_if_ether_compat_h_)) {
	eval 'sub _netinet_if_ether_compat_h_ () {1;}' unless defined(&_netinet_if_ether_compat_h_);
	require 'net/if_ether.ph';
	require 'net/if_arp.ph';
	require 'netinet/if_inarp.ph';
	if(defined(&CTASSERT)) {
	}
	eval 'sub arp_hrd () { ($ea_hdr->{ar_hrd});}' unless defined(&arp_hrd);
	eval 'sub arp_pro () { ($ea_hdr->{ar_pro});}' unless defined(&arp_pro);
	eval 'sub arp_hln () { ($ea_hdr->{ar_hln});}' unless defined(&arp_hln);
	eval 'sub arp_pln () { ($ea_hdr->{ar_pln});}' unless defined(&arp_pln);
	eval 'sub arp_op () { ($ea_hdr->{ar_op});}' unless defined(&arp_op);
    }
}
1;
