[BACK]Return to patch-src_esi_VarState.cc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / squid4 / patches

File: [cvs.NetBSD.org] / pkgsrc / www / squid4 / patches / patch-src_esi_VarState.cc (download)

Revision 1.1, Thu Jul 9 20:57:11 2020 UTC (4 months, 3 weeks ago) by otis
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD

squid4: Fix build and SSL handshake on Chromium-based browsers

Changes:
- Fix an error where strings.h was not properly included
- Add SMF support on apropriate platforms
- Backport https://github.com/squid-cache/squid/pull/663:
  SslBump: Support parsing GREASEd (and future) TLS handshakes

$NetBSD: patch-src_esi_VarState.cc,v 1.1 2020/07/09 20:57:11 otis Exp $

Fix undeclared index() by including the proper header file.

--- src/esi/VarState.cc.orig	2020-07-09 19:37:38.879095702 +0000
+++ src/esi/VarState.cc
@@ -12,6 +12,9 @@
 #include "esi/VarState.h"
 #include "fatal.h"
 #include "HttpReply.h"
+#if HAVE_STRINGS_H
+#include <strings.h>
+#endif
 
 char const *ESIVariableUserAgent::esiUserOs[]= {
     "WIN",