FCGI build fix

Maybe we should divide util.cpp into
- things used from the scheduler and file upload handlers
    (where we need boinc::stdio stuff)
- everything else
This commit is contained in:
David Anderson 2024-11-02 19:45:28 -07:00
parent 989f78d1ca
commit 3645a164e6
1 changed files with 5 additions and 2 deletions

View File

@ -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
@ -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');
@ -811,3 +813,4 @@ string docker_container_name(
bool docker_is_boinc_name(const char* name) {
return strstr(name, "boinc__") == name;
}
#endif // _USING_FCGI