diff --git a/lib/util.cpp b/lib/util.cpp index 897d277d6e..9ea53a61d6 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -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