From ca3451504c0b1681220e91597d46d126d6c88240 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 26 Oct 2006 21:44:10 +0000 Subject: [PATCH] fix building without threads (don't publish any thread-related monitor info...) --- servers/slapd/back-monitor/thread.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/servers/slapd/back-monitor/thread.c b/servers/slapd/back-monitor/thread.c index 4e307beccd..3a476cc0d8 100644 --- a/servers/slapd/back-monitor/thread.c +++ b/servers/slapd/back-monitor/thread.c @@ -29,12 +29,7 @@ #include -static int -monitor_subsys_thread_update( - Operation *op, - SlapReply *rs, - Entry *e ); - +#ifndef NO_THREADS typedef enum { MT_UNKNOWN, MT_RUNQUEUE, @@ -69,15 +64,22 @@ static struct { { BER_BVNULL } }; +static int +monitor_subsys_thread_update( + Operation *op, + SlapReply *rs, + Entry *e ); +#endif /* ! NO_THREADS */ + /* * initializes log subentry */ int monitor_subsys_thread_init( BackendDB *be, - monitor_subsys_t *ms -) + monitor_subsys_t *ms ) { +#ifndef NO_THREADS monitor_info_t *mi; monitor_entry_t *mp; Entry *e, **ep, *e_thread; @@ -176,9 +178,11 @@ monitor_subsys_thread_init( monitor_cache_release( mi, e_thread ); +#endif /* ! NO_THREADS */ return( 0 ); } +#ifndef NO_THREADS static int monitor_subsys_thread_update( Operation *op, @@ -310,4 +314,4 @@ monitor_subsys_thread_update( return SLAP_CB_CONTINUE; } - +#endif /* ! NO_THREADS */ -- 2.39.5