From 6cba8d6873d99f2d7955699315d78238a2474242 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 27 Sep 2009 10:55:03 +0200 Subject: [PATCH] Fix Win32 build --- bacula/src/lib/priv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bacula/src/lib/priv.c b/bacula/src/lib/priv.c index 0e9267eb06..01ae7ac276 100644 --- a/bacula/src/lib/priv.c +++ b/bacula/src/lib/priv.c @@ -48,6 +48,7 @@ extern "C" int initgroups(const char *,int); */ void drop(char *uname, char *gname, bool keep_readall_caps) { +#if defined(HAVE_PWD_H) && defined(HAVE_GRP_H) struct passwd *passw = NULL; struct group *group = NULL; gid_t gid; @@ -131,4 +132,5 @@ void drop(char *uname, char *gname, bool keep_readall_caps) berrno be; Emsg1(M_ERROR_TERM, 0, _("Could not set specified userid: %s\n"), username); } +#endif } -- 2.39.5