require '_h2ph_pre.ph';

if((defined( &__FreeBSD__) || defined( &__bsdi__))  && defined( &KERNEL)) {
    unless(defined(&_KERNEL)) {
	eval 'sub _KERNEL () {1;}' unless defined(&_KERNEL);
    }
}
if(defined( &__NetBSD__) || defined( &__OpenBSD__) || defined( &__bsdi__)) {
    eval 'sub RTALLOC1 {
        local($A,$B) = @_;
	    eval q( &rtalloc1(($A),($B)));
    }' unless defined(&RTALLOC1);
}
 elsif(defined( &__FreeBSD__)) {
    eval 'sub RTALLOC1 {
        local($A,$B) = @_;
	    eval q( &rtalloc1(($A),($B),0));
    }' unless defined(&RTALLOC1);
}
unless(defined(&ATM_PH_FLAGS)) {
    sub ATM_PH_FLAGS {
	local($X) = @_;
	eval q((($X)-> $atm_ph[0]));
    }
}
unless(defined(&ATM_PH_VPI)) {
    sub ATM_PH_VPI {
	local($X) = @_;
	eval q((($X)-> $atm_ph[1]));
    }
}
unless(defined(&ATM_PH_VCI)) {
    sub ATM_PH_VCI {
	local($X) = @_;
	eval q((((($X)-> $atm_ph[2]) << 8) | (($X)-> $atm_ph[3])));
    }
}
unless(defined(&ATM_PH_SETVCI)) {
    sub ATM_PH_SETVCI {
	local($X,$V) = @_;
	eval q({ ($X)-> $atm_ph[2] = (($V) >> 8) & 0xff; ($X)-> $atm_ph[3] = (($V) & 0xff); });
    }
}
unless(defined(&ATM_PH_AAL5)) {
    sub ATM_PH_AAL5 () {	0x01;}
}
unless(defined(&ATM_PH_LLCSNAP)) {
    sub ATM_PH_LLCSNAP () {	0x02;}
}
unless(defined(&ATM_PH_DRIVER7)) {
    sub ATM_PH_DRIVER7 () {	0x40;}
}
unless(defined(&ATM_PH_DRIVER8)) {
    sub ATM_PH_DRIVER8 () {	0x80;}
}
unless(defined(&ATMMTU)) {
    sub ATMMTU () {	9180;}
}
unless(defined(&SIOCRAWATM)) {
    sub SIOCRAWATM () {	 &_IOWR(ord('a'), 122, 'int');}
}
unless(defined(&SIOCATMENA)) {
    sub SIOCATMENA () {	 &_IOWR(ord('a'), 123, 'struct atm_pseudoioctl');}
}
unless(defined(&SIOCATMDIS)) {
    sub SIOCATMDIS () {	 &_IOWR(ord('a'), 124, 'struct atm_pseudoioctl');}
}
unless(defined(&ATMLLC_HDR)) {
    sub ATMLLC_HDR () {	"\252\252\3\0\0\0";}
}
unless(defined(&ATM_LLC_TYPE)) {
    sub ATM_LLC_TYPE {
	local($X) = @_;
	eval q(((($X)-> $type[0] << 8) | (($X)-> $type[1])));
    }
}
unless(defined(&ATM_LLC_SETTYPE)) {
    sub ATM_LLC_SETTYPE {
	local($X,$V) = @_;
	eval q({ ($X)-> $type[0] = (($V) >> 8) & 0xff; ($X)-> $type[1] = (($V) & 0xff); });
    }
}
if(defined(&_KERNEL)) {
}
1;
