mirror of https://github.com/BOINC/boinc.git
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:
parent
989f78d1ca
commit
3645a164e6
|
@ -646,7 +646,7 @@ bool process_exists(HANDLE h) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else // _WIN32
|
||||||
|
|
||||||
// Unix: pthreads doesn't provide an API for getting per-thread CPU time,
|
// Unix: pthreads doesn't provide an API for getting per-thread CPU time,
|
||||||
// so just get the process's CPU time
|
// so just get the process's CPU time
|
||||||
|
@ -686,7 +686,9 @@ bool process_exists(int pid) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _WIN32
|
||||||
|
|
||||||
|
#ifndef _USING_FCGI_
|
||||||
|
|
||||||
string parse_ldd_libc(const char* input) {
|
string parse_ldd_libc(const char* input) {
|
||||||
char *q = (char*)strchr(input, '\n');
|
char *q = (char*)strchr(input, '\n');
|
||||||
|
@ -811,3 +813,4 @@ string docker_container_name(
|
||||||
bool docker_is_boinc_name(const char* name) {
|
bool docker_is_boinc_name(const char* name) {
|
||||||
return strstr(name, "boinc__") == name;
|
return strstr(name, "boinc__") == name;
|
||||||
}
|
}
|
||||||
|
#endif // _USING_FCGI
|
||||||
|
|
Loading…
Reference in New Issue