Fixed another FCGI compile problem.

This commit is contained in:
Eric J Korpela 2013-01-17 14:34:04 -08:00 committed by Oliver Bock
parent 899d2721ac
commit 6ac06fca94
1 changed files with 5 additions and 0 deletions

View File

@ -29,7 +29,12 @@ std::vector<regex_t> 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);