diff options
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index 9fe7262aab..f1b1bff613 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -13,6 +13,7 @@ #include "orconfig.h" #include "torint.h" +#include "compat.h" #include <stdio.h> #ifdef HAVE_SYS_TIME_H #include <sys/time.h> @@ -38,7 +39,7 @@ #define tor_assert(expr) do { \ if (!(expr)) { \ log(LOG_ERR, "%s:%d: %s: Assertion %s failed; aborting.", \ - __FILE__, __LINE__, __FUNCTION__, #expr); \ + _SHORT_FILE_, __LINE__, __FUNCTION__, #expr); \ assert(expr); /* write to console too. */ \ abort(); /* unreached */ \ } } while (0) |