require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NET_IF_WG_H_)) {
    eval 'sub _NET_IF_WG_H_ () {1;}' unless defined(&_NET_IF_WG_H_);
    require 'net/if.ph';
    eval 'sub WG_IOCTL_SET_PRIVATE_KEY () { &__BIT(0);}' unless defined(&WG_IOCTL_SET_PRIVATE_KEY);
    eval 'sub WG_IOCTL_SET_LISTEN_PORT () { &__BIT(1);}' unless defined(&WG_IOCTL_SET_LISTEN_PORT);
    eval 'sub WG_IOCTL_ADD_PEER () { &__BIT(2);}' unless defined(&WG_IOCTL_ADD_PEER);
    eval 'sub WG_IOCTL_DELETE_PEER () { &__BIT(3);}' unless defined(&WG_IOCTL_DELETE_PEER);
    eval 'sub WG_PEER_NAME_MAXLEN () { &IFNAMSIZ;}' unless defined(&WG_PEER_NAME_MAXLEN);
}
1;
