require '_h2ph_pre.ph';

no warnings qw(redefine misc);

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_TFORK () {3;}' unless defined(&KERN_FORKSTAT_TFORK);
    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_SIZTFORK () {7;}' unless defined(&KERN_FORKSTAT_SIZTFORK);
    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 }, { "tforks",  &CTLTYPE_INT }, { "kthreads",  &CTLTYPE_INT }, { "fork_pages",  &CTLTYPE_INT }, { "vfork_pages",  &CTLTYPE_INT }, { "tfork_pages",  &CTLTYPE_INT }, { "kthread_pages",  &CTLTYPE_INT }, };}' unless defined(&CTL_KERN_FORKSTAT_NAMES);
}
1;
