$NetBSD: patch-ai,v 1.1 2005/10/27 00:18:51 rillig Exp $ The SunPro compiler does not like static inline template<>s. --- common/lsort.hpp.orig 2005-10-27 01:57:11.515745500 +0200 +++ common/lsort.hpp 2005-10-27 01:57:40.246031300 +0200 @@ -44,7 +44,7 @@ struct Less { template -static inline N * merge(N * x, N * y, const LT & lt, const NX & nx) +inline N * merge(N * x, N * y, const LT & lt, const NX & nx) { if (lt(y,x)) swap(x,y); N * first = x; @@ -67,7 +67,7 @@ static inline N * merge(N * x, N * y, co // THIS is SLOWER!!! // and even slower when condational move is used!!!! template -static inline N * merge1(N * x, N * y, const LT & lt, const NX & nx) +inline N * merge1(N * x, N * y, const LT & lt, const NX & nx) { N * * cur = lt(x,y) ? &x : &y; N * first = *cur; @@ -85,13 +85,13 @@ static inline N * merge1(N * x, N * y, c } template -static inline N * merge(N * x, N * y, const LT & lt) +inline N * merge(N * x, N * y, const LT & lt) { return sort(x, y, lt, Next()); } template -static inline N * merge(N * x, N * y) +inline N * merge(N * x, N * y) { return sort(x, y, Less(), Next()); } @@ -133,20 +133,20 @@ N * sort(N * first, const LT & lt, const } template -static inline N * sort(N * first, const LT & lt) +inline N * sort(N * first, const LT & lt) { return sort(first, lt, Next()); } template -static inline N * sort(N * first) +inline N * sort(N * first) { return sort(first, Less(), Next()); } template -static inline N * fix_links(N * cur) +inline N * fix_links(N * cur) { N * prev = 0; while (cur) {