From b50b6d7260cbf54b3a994ec9b54eb1e210c3447d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 9 Dec 2009 15:34:04 +0100 Subject: [PATCH] Fix compilation pb --- bacula/src/lib/lockmgr.c | 2 ++ bacula/src/lib/lockmgr.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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__) -- 2.39.5