From: Kern Sibbald Date: Sun, 27 Sep 2009 08:55:03 +0000 (+0200) Subject: Fix Win32 build X-Git-Tag: Release-7.0.0~2616^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6cba8d6873d99f2d7955699315d78238a2474242;p=bacula%2Fbacula Fix Win32 build --- 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 }