require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NETIPSEC_IPSECIF_H_)) {
    eval 'sub _NETIPSEC_IPSECIF_H_ () {1;}' unless defined(&_NETIPSEC_IPSECIF_H_);
    require 'net/if_ipsec.ph';
    eval 'sub IPSEC_TTL () {64;}' unless defined(&IPSEC_TTL);
    eval 'sub IPSEC_HLIM () {64;}' unless defined(&IPSEC_HLIM);
    if(defined(&_KERNEL)) {
	if(defined(&INET6)) {
	    eval 'sub IPSEC_PMTU_SYSDEFAULT () {-1;}' unless defined(&IPSEC_PMTU_SYSDEFAULT);
	    eval 'sub IPSEC_PMTU_MINMTU () {0;}' unless defined(&IPSEC_PMTU_MINMTU);
	    eval 'sub IPSEC_PMTU_OUTERMTU () {1;}' unless defined(&IPSEC_PMTU_OUTERMTU);
	}
    }
}
1;
