require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NET80211_IEEE80211_SYSCTL_H_)) {
    eval 'sub _NET80211_IEEE80211_SYSCTL_H_ () {1;}' unless defined(&_NET80211_IEEE80211_SYSCTL_H_);
    require 'net80211/_ieee80211.ph';
    eval 'sub IEEE80211_SYSCTL_NODENAME_IF () {0;}' unless defined(&IEEE80211_SYSCTL_NODENAME_IF);
    eval 'sub IEEE80211_SYSCTL_NODENAME_OP () {1;}' unless defined(&IEEE80211_SYSCTL_NODENAME_OP);
    eval 'sub IEEE80211_SYSCTL_NODENAME_ARG () {2;}' unless defined(&IEEE80211_SYSCTL_NODENAME_ARG);
    eval 'sub IEEE80211_SYSCTL_NODENAME_TYPE () {3;}' unless defined(&IEEE80211_SYSCTL_NODENAME_TYPE);
    eval 'sub IEEE80211_SYSCTL_NODENAME_ELTSIZE () {4;}' unless defined(&IEEE80211_SYSCTL_NODENAME_ELTSIZE);
    eval 'sub IEEE80211_SYSCTL_NODENAME_ELTCOUNT () {5;}' unless defined(&IEEE80211_SYSCTL_NODENAME_ELTCOUNT);
    eval 'sub IEEE80211_SYSCTL_NODENAMELEN () {6;}' unless defined(&IEEE80211_SYSCTL_NODENAMELEN);
    eval 'sub IEEE80211_SYSCTL_T_NODE () {0;}' unless defined(&IEEE80211_SYSCTL_T_NODE);
    eval 'sub IEEE80211_SYSCTL_T_RSSADAPT () {1;}' unless defined(&IEEE80211_SYSCTL_T_RSSADAPT);
    eval 'sub IEEE80211_SYSCTL_T_DRVSPEC () {2;}' unless defined(&IEEE80211_SYSCTL_T_DRVSPEC);
    eval 'sub IEEE80211_SYSCTL_OP_ALL () {0;}' unless defined(&IEEE80211_SYSCTL_OP_ALL);
    if(defined(&notyet)) {
    }
    if(defined(&__NetBSD__)) {
	eval("sub IEEE80211_WALK_BSS () { 0; }") unless defined(&IEEE80211_WALK_BSS);
	eval("sub IEEE80211_WALK_SCAN () { 1; }") unless defined(&IEEE80211_WALK_SCAN);
	eval("sub IEEE80211_WALK_STA () { 2; }") unless defined(&IEEE80211_WALK_STA);
    }
    eval 'sub IEEE80211_NODE_SYSCTL_F_BSS () {0x1;}' unless defined(&IEEE80211_NODE_SYSCTL_F_BSS);
    eval 'sub IEEE80211_NODE_SYSCTL_F_STA () {0x2;}' unless defined(&IEEE80211_NODE_SYSCTL_F_STA);
    eval 'sub IEEE80211_NODE_SYSCTL_F_SCAN () {0x4;}' unless defined(&IEEE80211_NODE_SYSCTL_F_SCAN);
}
1;
