Blame SOURCES/squid-4.11-systemd.patch

3921f5
diff --git a/configure b/configure
3921f5
index 17b2ebf..9530f6b 100755
3921f5
--- a/configure
3921f5
+++ b/configure
3921f5
@@ -33915,6 +33915,7 @@ done
3921f5
   fi
3921f5
   if test "x$SYSTEMD_LIBS" != "x" ; then
3921f5
     CXXFLAGS="$SYSTEMD_CFLAGS $CXXFLAGS"
3921f5
+    LDFLAGS="$SYSTEMD_LIBS $LDFLAGS"
3921f5
 
3921f5
 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
3921f5
 
3921f5
diff --git a/src/Debug.h b/src/Debug.h
3921f5
index 6eecd01..ddd9e38 100644
3921f5
--- a/src/Debug.h
3921f5
+++ b/src/Debug.h
3921f5
@@ -99,6 +99,10 @@ public:
3921f5
 
3921f5
     /// configures the active debugging context to write syslog ALERT
3921f5
     static void ForceAlert();
3921f5
+
3921f5
+    /// prefixes each grouped debugs() line after the first one in the group
3921f5
+    static std::ostream& Extra(std::ostream &os) { return os << "\n    "; }
3921f5
+
3921f5
 private:
3921f5
     static Context *Current; ///< deepest active context; nil outside debugs()
3921f5
 };
3921f5
diff --git a/configure.ac b/configure.ac
3921f5
index d3c5da8..806302c 100644
3921f5
--- a/configure.ac
3921f5
+++ b/configure.ac
3921f5
@@ -2162,6 +2162,7 @@ if test "x$with_systemd" != "xno" -a "x$squid_host_os" = "xlinux"; then
3921f5
   fi
3921f5
   if test "x$SYSTEMD_LIBS" != "x" ; then
3921f5
     CXXFLAGS="$SYSTEMD_CFLAGS $CXXFLAGS"
3921f5
+    LDFLAGS="$SYSTEMD_LIBS $LDFLAGS"
3921f5
     AC_DEFINE(USE_SYSTEMD,1,[systemd support is available])
3921f5
   else
3921f5
     with_systemd=no