[or-cvs] SGI Compatibility patches from Jan Schaumann

Nick Mathewson nickm at seul.org
Thu Feb 3 19:55:49 UTC 2005


Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv6356/src/common

Modified Files:
      Tag: tor-0_0_9-patches
	compat.c compat.h 
Log Message:
SGI Compatibility patches from Jan Schaumann

Index: compat.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.c,v
retrieving revision 1.22.2.3
retrieving revision 1.22.2.4
diff -u -d -r1.22.2.3 -r1.22.2.4
--- compat.c	4 Jan 2005 06:23:18 -0000	1.22.2.3
+++ compat.c	3 Feb 2005 19:55:42 -0000	1.22.2.4
@@ -583,6 +583,7 @@
 
 #ifndef MS_WINDOWS
 struct tor_mutex_t {
+  int _unused;
 };
 tor_mutex_t *tor_mutex_new(void) { return NULL; }
 void tor_mutex_acquire(tor_mutex_t *m) { }

Index: compat.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.h,v
retrieving revision 1.13.2.3
retrieving revision 1.13.2.4
diff -u -d -r1.13.2.3 -r1.13.2.4
--- compat.h	22 Jan 2005 00:36:52 -0000	1.13.2.3
+++ compat.h	3 Feb 2005 19:55:42 -0000	1.13.2.4
@@ -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. */



More information about the tor-commits mailing list