]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix compilation pb
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 9 Dec 2009 14:34:04 +0000 (15:34 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 9 Dec 2009 14:35:00 +0000 (15:35 +0100)
bacula/src/lib/lockmgr.c
bacula/src/lib/lockmgr.h

index c2f7b875cb908df4d2b9987cd6db6555cafcc26a..11d83fa293968a67f7ebdc8e0f94e261da215d91 100644 (file)
@@ -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
 }
 
 /*
index 03210a9880001b8e242988efa362fa4e53d44ac8..1fe7c16563331537db7adaddd6ca0fd9b7cbae14 100644 (file)
@@ -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__)