From 9b3c5eb42021a7043fd0f4d452807df1a6ba877d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 23 Oct 2006 13:43:22 +0200 Subject: [PATCH] processes plugin: Only define `ps_list_register' if it is actually used. --- src/processes.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/processes.c b/src/processes.c index cb6bb487..619b6e37 100644 --- a/src/processes.c +++ b/src/processes.c @@ -203,6 +203,11 @@ static mach_msg_type_number_t pset_list_len; static long pagesize_g; #endif /* KERNEL_LINUX */ +#if HAVE_THREAD_INFO +/* ps_list_* not used yet */ +/* #endif HAVE_THREAD_INFO */ + +#elif KERNEL_LINUX static void ps_list_register (const char *name) { procstat_t *new; @@ -399,6 +404,7 @@ static void ps_list_reset (void) } /* while (pse != NULL) */ } /* for (ps = list_head_g; ps != NULL; ps = ps->next) */ } +#endif /* KERNEL_LINUX */ static int ps_config (char *key, char *value) { -- 2.30.2