From: Maxim Mamontov Date: Mon, 4 Apr 2011 13:58:59 +0000 (+0300) Subject: Include algorithm in divert_cap.cpp for find X-Git-Tag: 2.407-rc3~99 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/65a386030a3bbe5edf34da97ce9e5cfa1ee063c7 Include algorithm in divert_cap.cpp for find --- 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;