]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed r14838 build with eCAP but whithout ICAP support.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 15 Oct 2016 02:31:11 +0000 (20:31 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 15 Oct 2016 02:31:11 +0000 (20:31 -0600)
That is, when ./configured with --enable-ecap --disable-icap-client.

AccessLogEntry::icap requires ICAP_CLIENT, not just USE_ADAPTATION.

src/format/Format.cc

index bce95311d86c7dde58e129023fd3e3b696b2fb57..afcc81a3eab101c5e4471f3c329735396b2c9fa1 100644 (file)
@@ -339,7 +339,7 @@ static const HttpMsg *
 actualReplyHeader(const AccessLogEntry::Pointer &al)
 {
     const HttpMsg *msg = al->reply;
-#if USE_ADAPTATION
+#if ICAP_CLIENT
     // al->icap.reqMethod is methodNone in access.log context
     if (!msg && al->icap.reqMethod == Adaptation::methodReqmod)
         msg = al->adapted_request;
@@ -352,7 +352,7 @@ actualReplyHeader(const AccessLogEntry::Pointer &al)
 static const HttpMsg *
 actualRequestHeader(const AccessLogEntry::Pointer &al)
 {
-#if USE_ADAPTATION
+#if ICAP_CLIENT
     // al->icap.reqMethod is methodNone in access.log context
     if (al->icap.reqMethod == Adaptation::methodRespmod) {
         // XXX: for now AccessLogEntry lacks virgin response headers
@@ -868,7 +868,7 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
         break;
 
         case LFT_REQUEST_ALL_HEADERS:
-#if USE_ADAPTATION
+#if ICAP_CLIENT
             if (al->icap.reqMethod == Adaptation::methodRespmod) {
                 // XXX: since AccessLogEntry::Headers lacks virgin response
                 // headers, do nothing for now
@@ -892,7 +892,7 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
 
         case LFT_REPLY_ALL_HEADERS:
             out = al->headers.reply;
-#if USE_ADAPTATION
+#if ICAP_CLIENT
             if (!out && al->icap.reqMethod == Adaptation::methodReqmod)
                 out = al->headers.adapted_request;
 #endif