fix compile ifndef DARWIN_HAS_LIBPROC_H
This commit is contained in:
parent
61f443ba07
commit
424effcad7
@ -62,9 +62,11 @@ struct sigar_t {
|
|||||||
int lcpu;
|
int lcpu;
|
||||||
#ifdef DARWIN
|
#ifdef DARWIN
|
||||||
mach_port_t mach_port;
|
mach_port_t mach_port;
|
||||||
|
# ifdef DARWIN_HAS_LIBPROC_H
|
||||||
void *libproc;
|
void *libproc;
|
||||||
proc_pidinfo_func_t proc_pidinfo;
|
proc_pidinfo_func_t proc_pidinfo;
|
||||||
proc_pidfdinfo_func_t proc_pidfdinfo;
|
proc_pidfdinfo_func_t proc_pidfdinfo;
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
kvm_t *kmem;
|
kvm_t *kmem;
|
||||||
/* offsets for seeking on kmem */
|
/* offsets for seeking on kmem */
|
||||||
|
Loading…
Reference in New Issue
Block a user