diff --git a/sched/sched_files.cpp b/sched/sched_files.cpp index b81515294d..e8cc265a63 100644 --- a/sched/sched_files.cpp +++ b/sched/sched_files.cpp @@ -29,7 +29,12 @@ std::vector file_delete_regex; int init_file_delete_regex() { char buf[256]; +#ifndef _USING_FCGI_ FILE* f = fopen("../file_delete_regex", "r"); +#else + FCGI_FILE* f = FCGI::fopen("../file_delete_regex", "r"); +#endif + if (!f) return 0; while (fgets(buf, sizeof(buf), f)) { strip_whitespace(buf);