Skip to content

Commit

Permalink
FCGI build fix
Browse files Browse the repository at this point in the history
Maybe we should divide util.cpp into
- things used from the scheduler and file upload handlers
    (where we need boinc::stdio stuff)
- everything else
  • Loading branch information
davidpanderson committed Nov 3, 2024
1 parent 989f78d commit 3645a16
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ bool process_exists(HANDLE h) {
return false;
}

#else
#else // _WIN32

// Unix: pthreads doesn't provide an API for getting per-thread CPU time,
// so just get the process's CPU time
Expand Down Expand Up @@ -686,7 +686,9 @@ bool process_exists(int pid) {
return true;
}

#endif
#endif // _WIN32

#ifndef _USING_FCGI_

string parse_ldd_libc(const char* input) {
char *q = (char*)strchr(input, '\n');
Expand Down Expand Up @@ -811,3 +813,4 @@ string docker_container_name(
bool docker_is_boinc_name(const char* name) {
return strstr(name, "boinc__") == name;
}
#endif // _USING_FCGI

0 comments on commit 3645a16

Please sign in to comment.