From 46a3bde3a66d36a77f40d4beeb0976ac4e2bd158 Mon Sep 17 00:00:00 2001 From: amosjeffries <> Date: Wed, 6 Feb 2008 11:06:46 +0000 Subject: [PATCH] Bug #2166 - Error compiling on Mac OS X 10.5 Leopard --- src/ACLHTTPRepHeader.cc | 8 +------- src/ACLHTTPReqHeader.cc | 8 +------- src/ACLStrategised.cc | 13 ++++++++++++- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/ACLHTTPRepHeader.cc b/src/ACLHTTPRepHeader.cc index 9935c40f59..8aa0e3a753 100644 --- a/src/ACLHTTPRepHeader.cc +++ b/src/ACLHTTPRepHeader.cc @@ -1,6 +1,6 @@ /* - * $Id: ACLHTTPRepHeader.cc,v 1.1 2006/06/14 19:18:24 serassio Exp $ + * $Id: ACLHTTPRepHeader.cc,v 1.1.4.1 2008/02/06 04:06:46 amosjeffries Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -39,12 +39,6 @@ #include "ACLChecklist.h" #include "HttpReply.h" -/* explicit template instantiation required for some systems */ - -template class ACLStrategised - -; - ACL::Prototype ACLHTTPRepHeader::RegistryProtoype(&ACLHTTPRepHeader::RegistryEntry_, "rep_header"); ACLStrategised ACLHTTPRepHeader::RegistryEntry_(new ACLHTTPHeaderData, ACLHTTPRepHeaderStrategy::Instance(), "rep_header"); diff --git a/src/ACLHTTPReqHeader.cc b/src/ACLHTTPReqHeader.cc index c71421a44b..e337c1f3e4 100644 --- a/src/ACLHTTPReqHeader.cc +++ b/src/ACLHTTPReqHeader.cc @@ -1,6 +1,6 @@ /* - * $Id: ACLHTTPReqHeader.cc,v 1.1 2006/06/14 19:18:24 serassio Exp $ + * $Id: ACLHTTPReqHeader.cc,v 1.1.4.1 2008/02/06 04:06:46 amosjeffries Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -39,12 +39,6 @@ #include "ACLChecklist.h" #include "HttpRequest.h" -/* explicit template instantiation required for some systems */ - -template class ACLStrategised - -; - ACL::Prototype ACLHTTPReqHeader::RegistryProtoype(&ACLHTTPReqHeader::RegistryEntry_, "req_header"); ACLStrategised ACLHTTPReqHeader::RegistryEntry_(new ACLHTTPHeaderData, ACLHTTPReqHeaderStrategy::Instance(), "req_header"); diff --git a/src/ACLStrategised.cc b/src/ACLStrategised.cc index ec7e2dbe27..f3eb4b92fb 100644 --- a/src/ACLStrategised.cc +++ b/src/ACLStrategised.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLStrategised.cc,v 1.1 2003/02/17 07:01:34 robertc Exp $ + * $Id: ACLStrategised.cc,v 1.1.4.1 2008/02/06 04:06:46 amosjeffries Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -41,3 +41,14 @@ #include "ACLRegexData.h" #include "ACLDomainData.h" +/* + * moved template instantiation into ACLStrategized.cc from + * ACLHTTPRepHeader.cc and ACLHTTPReqHeader.cc to compile on + * Mac OSX 10.5 Leopard, this corrects a duplicate symbol error + */ + +/* explicit template instantiation required for some systems */ + +template class ACLStrategised + +; -- 2.47.3