From 2445a73e8929ad2e8666a8bd69d73eac22c820a3 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 19 May 2017 12:42:37 +0200 Subject: [PATCH] Fix compilation issue with FreeBSD --- bacula/src/lib/lockmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/lib/lockmgr.c b/bacula/src/lib/lockmgr.c index 7ecd201155..094f1e0d58 100644 --- a/bacula/src/lib/lockmgr.c +++ b/bacula/src/lib/lockmgr.c @@ -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 -- 2.39.5