]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Compat: Suppress sprintf override on Solaris cppunit
authorAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 22 Mar 2010 22:32:32 +0000 (16:32 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 22 Mar 2010 22:32:32 +0000 (16:32 -0600)
compat/os/solaris.h

index fe1c039ea31f98fd97edea3d605fc548e4d705a0..e159e8545fe5b0b1de8788b0425f7e7bf3fa0ee2 100644 (file)
@@ -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 */