require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__VMMETER_H__)) {
    eval 'sub __VMMETER_H__ () {1;}' unless defined(&__VMMETER_H__);
    eval 'sub KERN_FORKSTAT_FORK () {1;}' unless defined(&KERN_FORKSTAT_FORK);
    eval 'sub KERN_FORKSTAT_VFORK () {2;}' unless defined(&KERN_FORKSTAT_VFORK);
    eval 'sub KERN_FORKSTAT_RFORK () {3;}' unless defined(&KERN_FORKSTAT_RFORK);
    eval 'sub KERN_FORKSTAT_KTHREAD () {4;}' unless defined(&KERN_FORKSTAT_KTHREAD);
    eval 'sub KERN_FORKSTAT_SIZFORK () {5;}' unless defined(&KERN_FORKSTAT_SIZFORK);
    eval 'sub KERN_FORKSTAT_SIZVFORK () {6;}' unless defined(&KERN_FORKSTAT_SIZVFORK);
    eval 'sub KERN_FORKSTAT_SIZRFORK () {7;}' unless defined(&KERN_FORKSTAT_SIZRFORK);
    eval 'sub KERN_FORKSTAT_SIZKTHREAD () {8;}' unless defined(&KERN_FORKSTAT_SIZKTHREAD);
    eval 'sub KERN_FORKSTAT_MAXID () {9;}' unless defined(&KERN_FORKSTAT_MAXID);
    eval 'sub CTL_KERN_FORKSTAT_NAMES () {{ { 0, 0}, { "forks",  &CTLTYPE_INT }, { "vforks",  &CTLTYPE_INT }, { "rforks",  &CTLTYPE_INT }, { "kthreads",  &CTLTYPE_INT }, { "fork_pages",  &CTLTYPE_INT }, { "vfork_pages",  &CTLTYPE_INT }, { "rfork_pages",  &CTLTYPE_INT }, { "kthread_pages",  &CTLTYPE_INT }, };}' unless defined(&CTL_KERN_FORKSTAT_NAMES);
}
1;
