]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #2047 about bthread_cond_wait_p not declared
authorEric Bollengier <eric@baculasystems.com>
Fri, 11 Apr 2014 07:23:31 +0000 (09:23 +0200)
committerEric Bollengier <eric@baculasystems.com>
Fri, 11 Apr 2014 07:23:34 +0000 (09:23 +0200)
 A workaround is to compile with the --enable-lockmgr option

bacula/src/lib/lockmgr.h

index d112ee84ec5ca93f2971d1528015da87465445f6..6844eebfce3af969c6aa7532d8072dedbbd86e06 100644 (file)
@@ -230,6 +230,7 @@ int bthread_kill(pthread_t thread, int sig,
 # define BTHREAD_MUTEX_NO_PRIORITY      PTHREAD_MUTEX_INITIALIZER
 # define BTHREAD_MUTEX_INITIALIZER      PTHREAD_MUTEX_INITIALIZER
 # define lmgr_mutex_is_locked(m)        (1)
+# define bthread_cond_wait_p(w, x, y, z) pthread_cond_wait(w,x)
 
 #endif  /* _USE_LOCKMGR */