From: Pierangelo Masarati Date: Thu, 26 Oct 2006 21:44:10 +0000 (+0000) Subject: fix building without threads (don't publish any thread-related monitor info...) X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca3451504c0b1681220e91597d46d126d6c88240;p=openldap fix building without threads (don't publish any thread-related monitor info...) --- 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 */