From 65a386030a3bbe5edf34da97ce9e5cfa1ee063c7 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 4 Apr 2011 16:58:59 +0300 Subject: [PATCH] Include algorithm in divert_cap.cpp for find --- .../plugins/capture/divert_freebsd/divert_cap.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp b/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp index 5c7ec364..5d49f692 100644 --- a/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp +++ b/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp @@ -22,23 +22,26 @@ $Revision: 1.13 $ $Date: 2010/09/10 06:43:03 $ */ -#include #include #include #include -#include #include #include #include #include -#include #include -#include -#include #include +#include +#include +#include +#include +#include + +#include + #include "common.h" #include "divert_cap.h" #include "traffcounter.h" @@ -277,7 +280,7 @@ PARAM_VALUE pv; vector::const_iterator pvi; pv.param = "Port"; -pvi = find(settings.moduleParams.begin(), settings.moduleParams.end(), pv); +pvi = std::find(settings.moduleParams.begin(), settings.moduleParams.end(), pv); if (pvi == settings.moduleParams.end()) { port = 15701; -- 2.44.2