]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix compilation issue with FreeBSD
authorEric Bollengier <eric@baculasystems.com>
Fri, 19 May 2017 10:42:37 +0000 (12:42 +0200)
committerKern Sibbald <kern@sibbald.com>
Thu, 25 May 2017 12:13:15 +0000 (14:13 +0200)
bacula/src/lib/lockmgr.c

index 7ecd20115556e3338d36281f062041718d731215..094f1e0d58461739e247baa1da27398be61c3734 100644 (file)
@@ -1207,7 +1207,7 @@ int bthread_change_uid(uid_t uid, gid_t gid)
    }
    return syscall(SYS_setreuid, getuid(), uid);
 
-#elif defined(HAVE_FREEBSD_OS) || defined(HAVE_DARWIN_OS)
+#elif defined(HAVE_PTHREAD_SETUGID_NP)
    return pthread_setugid_np(uid, gid);
 
 #endif