diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/common.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ | |||
32 | #include <ctype.h> | 32 | #include <ctype.h> |
33 | #include <assert.h> | 33 | #include <assert.h> |
34 | 34 | ||
35 | #if !defined(__func__) && defined(__FUNCTION__) | ||
36 | #define __func__ __FUNCTION__ | ||
37 | #endif | ||
38 | |||
35 | // dbus proxy path used by firejail and firemon | 39 | // dbus proxy path used by firejail and firemon |
36 | #define XDG_DBUS_PROXY_PATH "/usr/bin/xdg-dbus-proxy" | 40 | #define XDG_DBUS_PROXY_PATH "/usr/bin/xdg-dbus-proxy" |
37 | 41 | ||
38 | #define errExit(msg) do { \ | 42 | #define errExit(msg) do { \ |
39 | char msgout[500]; \ | 43 | char msgout[500]; \ |
40 | snprintf(msgout, 500, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __FUNCTION__); \ | 44 | snprintf(msgout, 500, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __func__); \ |
41 | perror(msgout); \ | 45 | perror(msgout); \ |
42 | exit(1); \ | 46 | exit(1); \ |
43 | } while (0) | 47 | } while (0) |