From 3645a164e6450d041cebd2059f167b57021c77f1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 2 Nov 2024 19:45:28 -0700 Subject: [PATCH] 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 --- lib/util.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/util.cpp b/lib/util.cpp index c1d230e946..55312ff694 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -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