require '_h2ph_pre.ph';

unless(defined(&__LINUX_IF_PPPOX_H)) {
    eval 'sub __LINUX_IF_PPPOX_H () {1;}' unless defined(&__LINUX_IF_PPPOX_H);
    require 'asm/types.ph';
    require 'asm/byteorder.ph';
    unless(defined(&AF_PPPOX)) {
	eval 'sub AF_PPPOX () {24;}' unless defined(&AF_PPPOX);
	eval 'sub PF_PPPOX () { &AF_PPPOX;}' unless defined(&PF_PPPOX);
    }
    eval 'sub PX_PROTO_OE () {0;}' unless defined(&PX_PROTO_OE);
    eval 'sub PX_MAX_PROTO () {1;}' unless defined(&PX_MAX_PROTO);
    eval 'sub PPPOEIOCSFWD () { &_IOW(0xb1 ,0, $sizeof{\'struct sockaddr_pppox\'});}' unless defined(&PPPOEIOCSFWD);
    eval 'sub PPPOEIOCDFWD () { &_IO(0xb1 ,1);}' unless defined(&PPPOEIOCDFWD);
    eval 'sub PADI_CODE () {0x9;}' unless defined(&PADI_CODE);
    eval 'sub PADO_CODE () {0x7;}' unless defined(&PADO_CODE);
    eval 'sub PADR_CODE () {0x19;}' unless defined(&PADR_CODE);
    eval 'sub PADS_CODE () {0x65;}' unless defined(&PADS_CODE);
    eval 'sub PADT_CODE () {0xa7;}' unless defined(&PADT_CODE);
    eval 'sub PTT_EOL () { &__constant_htons(0x);}' unless defined(&PTT_EOL);
    eval 'sub PTT_SRV_NAME () { &__constant_htons(0x101);}' unless defined(&PTT_SRV_NAME);
    eval 'sub PTT_AC_NAME () { &__constant_htons(0x102);}' unless defined(&PTT_AC_NAME);
    eval 'sub PTT_HOST_UNIQ () { &__constant_htons(0x103);}' unless defined(&PTT_HOST_UNIQ);
    eval 'sub PTT_AC_COOKIE () { &__constant_htons(0x104);}' unless defined(&PTT_AC_COOKIE);
    eval 'sub PTT_VENDOR () { &__constant_htons(0x105);}' unless defined(&PTT_VENDOR);
    eval 'sub PTT_RELAY_SID () { &__constant_htons(0x110);}' unless defined(&PTT_RELAY_SID);
    eval 'sub PTT_SRV_ERR () { &__constant_htons(0x201);}' unless defined(&PTT_SRV_ERR);
    eval 'sub PTT_SYS_ERR () { &__constant_htons(0x202);}' unless defined(&PTT_SYS_ERR);
    eval 'sub PTT_GEN_ERR () { &__constant_htons(0x203);}' unless defined(&PTT_GEN_ERR);
    if(defined( &__LITTLE_ENDIAN_BITFIELD)) {
    }
 elsif(defined( &__BIG_ENDIAN_BITFIELD)) {
    } else {
	die("Please fix <asm/byteorder.h>");
    }
}
1;
