require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETIPX_SPX_H_)) {
    eval 'sub _NETIPX_SPX_H_ () {1;}' unless defined(&_NETIPX_SPX_H_);
    require 'sys/queue.ph';
    eval 'sub SPX_SP () {0x80;}' unless defined(&SPX_SP);
    eval 'sub SPX_SA () {0x40;}' unless defined(&SPX_SA);
    eval 'sub SPX_OB () {0x20;}' unless defined(&SPX_OB);
    eval 'sub SPX_EM () {0x10;}' unless defined(&SPX_EM);
    eval 'sub SI {
        my($x) = @_;
	    eval q(($x));
    }' unless defined(&SI);
    eval 'sub si_sum () { ($si_i->{ipx_sum});}' unless defined(&si_sum);
    eval 'sub si_len () { ($si_i->{ipx_len});}' unless defined(&si_len);
    eval 'sub si_tc () { ($si_i->{ipx_tc});}' unless defined(&si_tc);
    eval 'sub si_pt () { ($si_i->{ipx_pt});}' unless defined(&si_pt);
    eval 'sub si_dna () { ($si_i->{ipx_dna});}' unless defined(&si_dna);
    eval 'sub si_sna () { ($si_i->{ipx_sna});}' unless defined(&si_sna);
    eval 'sub si_sport () { ($si_i->{ipx_sna}->{ipx_port});}' unless defined(&si_sport);
    eval 'sub si_cc () { ($si_s->{spx_cc});}' unless defined(&si_cc);
    eval 'sub si_dt () { ($si_s->{spx_dt});}' unless defined(&si_dt);
    eval 'sub si_sid () { ($si_s->{spx_sid});}' unless defined(&si_sid);
    eval 'sub si_did () { ($si_s->{spx_did});}' unless defined(&si_did);
    eval 'sub si_seq () { ($si_s->{spx_seq});}' unless defined(&si_seq);
    eval 'sub si_ack () { ($si_s->{spx_ack});}' unless defined(&si_ack);
    eval 'sub si_alo () { ($si_s->{spx_alo});}' unless defined(&si_alo);
    eval 'sub SF_ACKNOW () {0x1;}' unless defined(&SF_ACKNOW);
    eval 'sub SF_DELACK () {0x2;}' unless defined(&SF_DELACK);
    eval 'sub SF_HI () {0x4;}' unless defined(&SF_HI);
    eval 'sub SF_HO () {0x8;}' unless defined(&SF_HO);
    eval 'sub SF_PI () {0x10;}' unless defined(&SF_PI);
    eval 'sub SF_WIN () {0x20;}' unless defined(&SF_WIN);
    eval 'sub SF_RXT () {0x40;}' unless defined(&SF_RXT);
    eval 'sub SF_RVD () {0x80;}' unless defined(&SF_RVD);
    eval 'sub s_cc () { ($s_shdr->{spx_cc});}' unless defined(&s_cc);
    eval 'sub s_dt () { ($s_shdr->{spx_dt});}' unless defined(&s_dt);
    eval 'sub s_sid () { ($s_shdr->{spx_sid});}' unless defined(&s_sid);
    eval 'sub s_did () { ($s_shdr->{spx_did});}' unless defined(&s_did);
    eval 'sub s_seq () { ($s_shdr->{spx_seq});}' unless defined(&s_seq);
    eval 'sub s_ack () { ($s_shdr->{spx_ack});}' unless defined(&s_ack);
    eval 'sub s_alo () { ($s_shdr->{spx_alo});}' unless defined(&s_alo);
    eval 'sub s_dport () { ($s_ipx->{ipx_dna}->{ipx_port});}' unless defined(&s_dport);
    eval 'sub CUNIT () {1024;}' unless defined(&CUNIT);
    eval 'sub SPXT_NTIMERS () {4;}' unless defined(&SPXT_NTIMERS);
    eval 'sub SF_SOOB () {0x8;}' unless defined(&SF_SOOB);
    eval 'sub SF_IOOB () {0x10;}' unless defined(&SF_IOOB);
    eval 'sub SF_NEWCALL () {0x100;}' unless defined(&SF_NEWCALL);
    eval 'sub SO_NEWCALL () {10;}' unless defined(&SO_NEWCALL);
    eval 'sub ipxtospxpcb {
        my($np) = @_;
	    eval q((($np)-> &ipxp_ppcb));
    }' unless defined(&ipxtospxpcb);
    eval 'sub sotospxpcb {
        my($so) = @_;
	    eval q(( &ipxtospxpcb( &sotoipxpcb($so))));
    }' unless defined(&sotospxpcb);
    if(defined(&_KERNEL)) {
    }
}
1;
