# HG changeset patch # User Fabian Otto # Date 1140472684 21600 # Node ID 5afd459db1774b9e3cc65cc7a5abaec92f3b3665 # Parent 47f4fbee32c55a6e8b9febd5a4a3ba69c131f3fd 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. diff -r 47f4fbee32c5 -r 5afd459db177 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