diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index f10292a9..67592175 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -608,7 +608,11 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid, int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid, sigar_proc_args_t *procargs) { +#ifdef DARWIN return SIGAR_ENOTIMPL; +#else + return sigar_procfs_args_get(sigar, pid, procargs); +#endif } int sigar_proc_env_get(sigar_t *sigar, sigar_pid_t pid,