]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Forward-port SGI Compatibility patches from Jan Schaumann
authorNick Mathewson <nickm@torproject.org>
Thu, 3 Feb 2005 19:59:10 +0000 (19:59 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 3 Feb 2005 19:59:10 +0000 (19:59 +0000)
svn:r3517

src/common/compat.c
src/common/compat.h

index ae1b58653a82be3bcb287bb70dbeb11f9425ac43..fa30cd87399b50d35595c8f9733b67baaf442dc1 100644 (file)
@@ -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) { }
index f75e39b12245d34178881a7edb4dd36d6f3e3346..d1b5c80aed3f45206cabb4aed45f44742d970fc9 100644 (file)
 #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. */