From: Amos Jeffries Date: Mon, 22 Mar 2010 22:32:32 +0000 (-0600) Subject: Compat: Suppress sprintf override on Solaris cppunit X-Git-Tag: SQUID_3_2_0_1~336 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4286fd80557c7b6a0ba92032e3b1a2d490df6a9;p=thirdparty%2Fsquid.git Compat: Suppress sprintf override on Solaris cppunit --- diff --git a/compat/os/solaris.h b/compat/os/solaris.h index fe1c039ea3..e159e8545f 100644 --- a/compat/os/solaris.h +++ b/compat/os/solaris.h @@ -59,5 +59,12 @@ SQUIDCEXTERN int gethostname(char *, int); #define __FUNCTION__ "" #endif +/* Exclude CPPUnit tests from the allocator restrictions. */ +/* BSD implementation uses these still */ +#if defined(SQUID_UNIT_TEST) +#define SQUID_NO_STRING_BUFFER_PROTECT 1 +#endif + + #endif /* _SQUID_SOLARIS_ */ #endif /* SQUID_OS_SOALRIS_H */