Lib: fix compile error

Fixes ambiguity reported by gcc "error: call of overloaded 'perror(const char [9])' is ambiguous"
This commit is contained in:
Christian Beer 2017-03-20 10:00:01 +01:00
parent 31e8427469
commit 573ee60fed
1 changed files with 4 additions and 0 deletions

View File

@ -636,7 +636,11 @@ int get_real_executable_path(char* path, size_t max_len) {
path[ret] = '\0'; // readlink does not null terminate
return 0;
} else {
#ifdef _USING_FCGI_
FCGI::perror("readlink");
#else
perror("readlink");
#endif
return ERR_PROC_PARSE;
}
#endif