From: Eric Bollengier Date: Fri, 19 May 2017 10:42:37 +0000 (+0200) Subject: Fix compilation issue with FreeBSD X-Git-Tag: Release-7.9.0~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2445a73e8929ad2e8666a8bd69d73eac22c820a3;p=bacula%2Fbacula Fix compilation issue with FreeBSD --- 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