From 573ee60fedce41310d5e481eaa5e74b97e7c6825 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Mon, 20 Mar 2017 10:00:01 +0100 Subject: [PATCH] Lib: fix compile error Fixes ambiguity reported by gcc "error: call of overloaded 'perror(const char [9])' is ambiguous" --- lib/util.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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