瀏覽代碼

Forward-port SGI Compatibility patches from Jan Schaumann

svn:r3517
Nick Mathewson 20 年之前
父節點
當前提交
e4b21c97f7
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 1 0
      src/common/compat.c
  2. 4 0
      src/common/compat.h

+ 1 - 0
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) { }

+ 4 - 0
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. */