Sunpro compiler patch
authorFabian Otto <sigsegv@alchiba.ni.cs.tu-berlin.de>
Mon, 20 Feb 2006 15:58:04 -0600
changeset 1759 5afd459db177
parent 1758 47f4fbee32c5
child 1770 4eea6a747c27
Sunpro compiler patch The compiling runs through without warning, but runnig the newly builded hg emmits a message: | ImportError: ld.so.1: python: fatal: relocation error: | file /opt/local/lib/python2.3/site-packages/mercurial/bdiff.so: | symbol cmp: referenced symbol not found Removing the inline infront of cmp corrects this error message.
mercurial/bdiff.c
--- a/mercurial/bdiff.c	Mon Feb 20 11:09:25 2006 -0800
+++ b/mercurial/bdiff.c	Mon Feb 20 15:58:04 2006 -0600
@@ -17,6 +17,10 @@
 #define inline
 #endif
 
+#ifdef __SUNPRO_C
+# define inline
+#endif 
+
 #ifdef _WIN32
 #ifdef _MSC_VER
 #define inline __inline