1 diff -upr llvm-2.5.orig/lib/System/Unix/Signals.inc llvm-2.5/lib/System/Unix/Signals.inc
2 --- llvm-2.5.orig/lib/System/Unix/Signals.inc 2008-12-06 01:39:24.000000000 +0200
3 +++ llvm-2.5/lib/System/Unix/Signals.inc 2009-07-06 02:57:12.000000000 +0300
4 @@ -78,7 +78,7 @@ static void PrintStackTrace() {
5 for (int i = 0; i < depth; ++i) {
7 dladdr(StackTrace[i], &dlinfo);
8 - char* name = strrchr(dlinfo.dli_fname, '/');
9 + const char* name = strrchr(dlinfo.dli_fname, '/');
12 if (name == NULL) nwidth = strlen(dlinfo.dli_fname);
13 @@ -93,7 +93,7 @@ static void PrintStackTrace() {
15 fprintf(stderr, "%-3d", i);
17 - char* name = strrchr(dlinfo.dli_fname, '/');
18 + const char* name = strrchr(dlinfo.dli_fname, '/');
19 if (name == NULL) fprintf(stderr, " %-*s", width, dlinfo.dli_fname);
20 else fprintf(stderr, " %-*s", width, name+1);