aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/squid/files/0001-splay.cc-fix-bind-is-not-a-member-of-std.patch
blob: fbbad1597f2b2c103ee5190c8054c365018cf0bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 1def5b4278d97f197520d23c1dce52f93a1b2f46 Mon Sep 17 00:00:00 2001
From: Andrej Valek <andrej.valek@siemens.com>
Date: Tue, 9 Apr 2019 09:40:30 +0200
Subject: [PATCH] splay.cc: fix bind is not a member of std

fix
| ../../squid-4.6/test-suite/splay.cc:134:28: error: 'bind' is not a member of 'std'
|      auto nextRandom = std::bind (distribution, generator);
|                             ^~~~
| ../../squid-4.6/test-suite/splay.cc:134:28: note: 'std::bind' is defined in header '<functional>'; did you forget to '#include <functional>'?

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
---
 test-suite/splay.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test-suite/splay.cc b/test-suite/splay.cc
index f71b337..4e21adc 100644
--- a/test-suite/splay.cc
+++ b/test-suite/splay.cc
@@ -20,6 +20,7 @@
 #include <unistd.h>
 #endif
 #include <random>
+#include <functional>
 
 class intnode
 {
-- 
2.11.0