diff --git a/client/client_state.C b/client/client_state.C index 75cddc3a58..b8b27c74e9 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -300,11 +300,13 @@ int CLIENT_STATE::init() { } } +#ifndef _WIN32 #ifdef SANDBOX retval = lookup_group(BOINC_PROJECT_GROUP_NAME, boinc_project_gid); if (retval) return retval; #else boinc_project_gid = 0; +#endif #endif return 0; diff --git a/client/client_state.h b/client/client_state.h index fe48cc468c..3d8ef9a7b7 100644 --- a/client/client_state.h +++ b/client/client_state.h @@ -129,7 +129,9 @@ public: char attach_project_auth[256]; bool exit_before_upload; // exit when about to upload a file +#ifndef _WIN32 gid_t boinc_project_gid; +#endif // backoff-related variables //