diff options
-rw-r--r-- | src/common/compat.c | 1 | ||||
-rw-r--r-- | src/common/compat.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index ae1b58653a..fa30cd8739 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -774,6 +774,7 @@ void tor_mutex_free(tor_mutex_t *m) } #else struct tor_mutex_t { + int _unused; }; tor_mutex_t *tor_mutex_new(void) { return NULL; } void tor_mutex_acquire(tor_mutex_t *m) { } diff --git a/src/common/compat.h b/src/common/compat.h index f75e39b122..d1b5c80aed 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -53,6 +53,10 @@ #define __FUNCTION__ "???" #endif +#if defined(__sgi) && !defined(__GNUC__) && defined(__c99) +#define __FUNCTION__ __func__ +#endif + /* ===== String compatibility */ #ifdef MS_WINDOWS /* Windows names string functions differently from most other platforms. */ |