diff --git a/src/include/common.h b/src/include/common.h index 060945f82..23b00b6f8 100644 --- a/src/include/common.h +++ b/src/include/common.h @@ -32,12 +32,16 @@ #include #include +#if !defined(__func__) && defined(__FUNCTION__) +#define __func__ __FUNCTION__ +#endif + // dbus proxy path used by firejail and firemon #define XDG_DBUS_PROXY_PATH "/usr/bin/xdg-dbus-proxy" #define errExit(msg) do { \ char msgout[500]; \ - snprintf(msgout, 500, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __FUNCTION__); \ + snprintf(msgout, 500, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __func__); \ perror(msgout); \ exit(1); \ } while (0)