From 63be8caeccd19cd0f7e4630bf1e59816830c9226 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 14 Nov 2009 17:33:35 +1300 Subject: [PATCH] Author: Francesco Chemolli Portability: __FUNCTION__ is not available on Soalris SunProCC --- compat/os/solaris.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compat/os/solaris.h b/compat/os/solaris.h index b77db6de67..6a152d206b 100644 --- a/compat/os/solaris.h +++ b/compat/os/solaris.h @@ -48,11 +48,16 @@ SQUIDCEXTERN int gethostname(char *, int); /* * SunPro CC handles extern inline as inline, PLUS extern symbols. */ - #if !defined(_SQUID_EXTERNNEW_) && defined(__SUNPRO_CC) #define _SQUID_EXTERNNEW_ extern #endif +/* + * SunStudio CC does not define C++ portability API __FUNCTION__ + */ +#if defined(__SUNPRO_CC) && !defined(__FUNCTION__) +#define __FUNCTION__ "" +#endif #endif /* _SQUID_SOLARIS_ */ #endif /* SQUID_OS_SOALRIS_H */ -- 2.47.3