Forward-port SGI Compatibility patches from Jan Schaumann

svn:r3517
This commit is contained in:
Nick Mathewson 2005-02-03 19:59:10 +00:00
parent cd39e4fc62
commit e4b21c97f7
2 changed files with 5 additions and 0 deletions

View File

@ -774,6 +774,7 @@ void tor_mutex_free(tor_mutex_t *m)
} }
#else #else
struct tor_mutex_t { struct tor_mutex_t {
int _unused;
}; };
tor_mutex_t *tor_mutex_new(void) { return NULL; } tor_mutex_t *tor_mutex_new(void) { return NULL; }
void tor_mutex_acquire(tor_mutex_t *m) { } void tor_mutex_acquire(tor_mutex_t *m) { }

View File

@ -53,6 +53,10 @@
#define __FUNCTION__ "???" #define __FUNCTION__ "???"
#endif #endif
#if defined(__sgi) && !defined(__GNUC__) && defined(__c99)
#define __FUNCTION__ __func__
#endif
/* ===== String compatibility */ /* ===== String compatibility */
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
/* Windows names string functions differently from most other platforms. */ /* Windows names string functions differently from most other platforms. */