require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&__IP_SYNC_H__)) {
    eval 'sub __IP_SYNC_H__ () {1;}' unless defined(&__IP_SYNC_H__);
    eval 'sub SYNHDRMAGIC () {0xff51de5;}' unless defined(&SYNHDRMAGIC);
    eval 'sub SMC_CREATE () {0;}' unless defined(&SMC_CREATE);
    eval 'sub SMC_UPDATE () {1;}' unless defined(&SMC_UPDATE);
    eval 'sub SMC_MAXCMD () {1;}' unless defined(&SMC_MAXCMD);
    eval 'sub SMC_RLOG () {-2;}' unless defined(&SMC_RLOG);
    eval 'sub SMC_NAT () {0;}' unless defined(&SMC_NAT);
    eval 'sub SMC_STATE () {1;}' unless defined(&SMC_STATE);
    eval 'sub SMC_MAXTBL () {1;}' unless defined(&SMC_MAXTBL);
    eval 'sub sl_ptr () { ($sl_un->{slu_ptr});}' unless defined(&sl_ptr);
    eval 'sub sl_ips () { ($sl_un->{slu_ips});}' unless defined(&sl_ips);
    eval 'sub sl_ipn () { ($sl_un->{slu_ipn});}' unless defined(&sl_ipn);
    eval 'sub sl_magic () { ($sl_hdr->{sm_magic});}' unless defined(&sl_magic);
    eval 'sub sl_v () { ($sl_hdr->{sm_v});}' unless defined(&sl_v);
    eval 'sub sl_p () { ($sl_hdr->{sm_p});}' unless defined(&sl_p);
    eval 'sub sl_cmd () { ($sl_hdr->{sm_cmd});}' unless defined(&sl_cmd);
    eval 'sub sl_rev () { ($sl_hdr->{sm_rev});}' unless defined(&sl_rev);
    eval 'sub sl_table () { ($sl_hdr->{sm_table});}' unless defined(&sl_table);
    eval 'sub sl_num () { ($sl_hdr->{sm_num});}' unless defined(&sl_num);
    eval 'sub sl_len () { ($sl_hdr->{sm_len});}' unless defined(&sl_len);
    eval 'sub SYNCLOG_SZ () {256;}' unless defined(&SYNCLOG_SZ);
}
1;
