]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build on Fedora Rawhide (#772)
authoruhliarik <luhliari@redhat.com>
Thu, 18 Feb 2021 01:08:40 +0000 (01:08 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 18 Feb 2021 02:42:29 +0000 (02:42 +0000)
* add SYSTEMD_LIBS to all binaries using client_side.cc, fixing linking
* add `<limits>` to all sources using std::numeric_limits, fixing gcc-11
  builds

src/Makefile.am
src/ip/QosConfig.cc
src/ipc/mem/PageStack.cc
src/proxyp/Parser.cc
src/security/ServerOptions.cc
src/ssl/helper.cc

index 04632e7936217152c2d3ca14b8f3214cf88cddac..ba6825adaa6bb6df0317ec8a81ee2aba74e2f8fd 100644 (file)
@@ -2074,6 +2074,7 @@ tests_test_http_range_LDADD = \
        $(SSLLIB) \
        $(KRB5LIBS) \
        $(LIBCPPUNIT_LIBS) \
+       $(SYSTEMD_LIBS) \
        $(COMPAT_LIB) \
        $(XTRA_LIBS)
 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
@@ -2465,6 +2466,7 @@ tests_testHttpRequest_LDADD = \
        $(SSLLIB) \
        $(KRB5LIBS) \
        $(LIBCPPUNIT_LIBS) \
+       $(SYSTEMD_LIBS) \
        $(COMPAT_LIB) \
        $(XTRA_LIBS)
 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
@@ -2771,6 +2773,7 @@ tests_testCacheManager_LDADD = \
        $(SSLLIB) \
        $(KRB5LIBS) \
        $(LIBCPPUNIT_LIBS) \
+       $(SYSTEMD_LIBS) \
        $(COMPAT_LIB) \
        $(XTRA_LIBS)
 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
@@ -3093,6 +3096,7 @@ tests_testEvent_LDADD = \
        $(SSLLIB) \
        $(KRB5LIBS) \
        $(LIBCPPUNIT_LIBS) \
+       $(SYSTEMD_LIBS) \
        $(COMPAT_LIB) \
        $(XTRA_LIBS)
 tests_testEvent_LDFLAGS = $(LIBADD_DL)
index 2fa1c055a2af010d35f911062cd012ae3844d67d..09b3e87291201aaa3b7690f06493e57e3ceeca27 100644 (file)
@@ -20,6 +20,7 @@
 #include "Parsing.h"
 
 #include <cerrno>
+#include <limits>
 
 CBDATA_CLASS_INIT(acl_tos);
 
index d0ea201a20bbb5eceb7bd9aba1d079c8786e12d2..e11d287aea29dc886a22e2672c9f8cab0232b279 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <cmath>
 #include <algorithm>
+#include <limits>
 
 /*
 
index c9ef588062755195ff05b4527c3c53a8bea97da4..3a25d44128bac9a1139a614cbf8dbdd5475abcad 100644 (file)
@@ -15,6 +15,7 @@
 #include "sbuf/Stream.h"
 
 #include <algorithm>
+#include <limits>
 
 #if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
index f9da3ea4e9c2bace8aa04f84ec9c947d4d71d077..b9e259efc6d832fefd6fab699b02f97df0ba6081 100644 (file)
@@ -24,6 +24,8 @@
 #endif
 #endif
 
+#include <limits>
+
 Security::ServerOptions &
 Security::ServerOptions::operator =(const Security::ServerOptions &old) {
     if (this != &old) {
index 07213ec4dc5af9d1c7e4cf5ae083834449549f9a..ef3f8a664b3fd373a44d735b3897f08aefa55fac 100644 (file)
@@ -22,6 +22,8 @@
 #include "ssl/helper.h"
 #include "wordlist.h"
 
+#include <limits>
+
 Ssl::CertValidationHelper::CacheType *Ssl::CertValidationHelper::HelperCache = nullptr;
 
 #if USE_SSL_CRTD