From 424effcad70657f1d29bea69ccb1b91ef225b62e Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 13 Jul 2008 19:40:59 +0000 Subject: [PATCH] fix compile ifndef DARWIN_HAS_LIBPROC_H --- src/os/darwin/sigar_os.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/darwin/sigar_os.h b/src/os/darwin/sigar_os.h index aa55aed4..9ae6f02b 100644 --- a/src/os/darwin/sigar_os.h +++ b/src/os/darwin/sigar_os.h @@ -62,9 +62,11 @@ struct sigar_t { int lcpu; #ifdef DARWIN mach_port_t mach_port; +# ifdef DARWIN_HAS_LIBPROC_H void *libproc; proc_pidinfo_func_t proc_pidinfo; proc_pidfdinfo_func_t proc_pidfdinfo; +# endif #else kvm_t *kmem; /* offsets for seeking on kmem */