require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&PROTO_NATMAAL0)) {
    sub PROTO_NATMAAL0 () {	1;}
}
unless(defined(&PROTO_NATMAAL5)) {
    sub PROTO_NATMAAL5 () {	2;}
}
if(defined( &__FreeBSD__)  && defined( &KERNEL)) {
    unless(defined(&_KERNEL)) {
	eval 'sub _KERNEL () {1;}' unless defined(&_KERNEL);
    }
    eval 'sub SPLSOFTNET () {
        eval q( &splnet());
    }' unless defined(&SPLSOFTNET);
}
 elsif(defined( &__NetBSD__) || defined( &__OpenBSD__)) {
    eval 'sub SPLSOFTNET () {
        eval q( &splsoftnet());
    }' unless defined(&SPLSOFTNET);
}
if(defined(&_KERNEL)) {
    eval 'sub NPCB_FREE () {0x1;}' unless defined(&NPCB_FREE);
    eval 'sub NPCB_CONNECTED () {0x2;}' unless defined(&NPCB_CONNECTED);
    eval 'sub NPCB_IP () {0x4;}' unless defined(&NPCB_IP);
    eval 'sub NPCB_DRAIN () {0x8;}' unless defined(&NPCB_DRAIN);
    eval 'sub NPCB_RAW () {0x10;}' unless defined(&NPCB_RAW);
    eval 'sub NPCB_REMOVE () {0;}' unless defined(&NPCB_REMOVE);
    eval 'sub NPCB_DESTROY () {1;}' unless defined(&NPCB_DESTROY);
    eval 'sub NPCB_RAWCC () {(1024*1024);}' unless defined(&NPCB_RAWCC);
    eval 'sub NATM_STAT () {1;}' unless defined(&NATM_STAT);
    if(defined(&NATM_STAT)) {
    }
    eval 'sub SIOCXRAWATM () { &_IOWR(ord(\'a\'), 125, \'struct atm_rawioctl\');}' unless defined(&SIOCXRAWATM);
    if(defined( &__NetBSD__)) {
    }
 elsif(defined( &__OpenBSD__) || defined( &FreeBSD)) {
    }
}
1;
