From: Eric Bollengier Date: Wed, 9 Dec 2009 14:34:04 +0000 (+0100) Subject: Fix compilation pb X-Git-Tag: Release-5.0.0~162 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b940ac7707049bbdb8cc52d4a2c346aeac38c8e2;p=bacula%2Fbacula Fix compilation pb --- diff --git a/bacula/src/lib/lockmgr.c b/bacula/src/lib/lockmgr.c index c2f7b875cb..11d83fa293 100644 --- a/bacula/src/lib/lockmgr.c +++ b/bacula/src/lib/lockmgr.c @@ -685,7 +685,9 @@ void lmgr_cleanup_main() */ void bthread_mutex_set_priority(bthread_mutex_t *m, int prio) { +#ifdef USE_LOCKMGR_PRIORITY m->priority = prio; +#endif } /* diff --git a/bacula/src/lib/lockmgr.h b/bacula/src/lib/lockmgr.h index 03210a9880..1fe7c16563 100644 --- a/bacula/src/lib/lockmgr.h +++ b/bacula/src/lib/lockmgr.h @@ -160,7 +160,6 @@ int lmgr_thread_create(pthread_t *thread, # define BTHREAD_MUTEX_PRIORITY(p) {PTHREAD_MUTEX_INITIALIZER, p} #else # define BTHREAD_MUTEX_PRIORITY(p) BTHREAD_MUTEX_NO_PRIORITY -# define bthread_mutex_set_priority(x,y) #endif #define bthread_mutex_lock(x) bthread_mutex_lock_p(x, __FILE__, __LINE__)