From: Christos Tsantilas Date: Sun, 6 Feb 2011 16:39:53 +0000 (+0200) Subject: SMP SNMP X-Git-Tag: take03^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b167f1b8f37cfbecf3c13486d83c7266a263198d;p=thirdparty%2Fsquid.git SMP SNMP The SunStudio compiler requires the include file to allow use the std::copy --- diff --git a/configure.ac b/configure.ac index 27454acbf6..e09e6d814b 100644 --- a/configure.ac +++ b/configure.ac @@ -2219,6 +2219,7 @@ AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS( \ + algorithm \ arpa/inet.h \ arpa/nameser.h \ assert.h \ diff --git a/src/snmp/Pdu.cc b/src/snmp/Pdu.cc index db1af89d28..eb3d12ff90 100644 --- a/src/snmp/Pdu.cc +++ b/src/snmp/Pdu.cc @@ -12,6 +12,9 @@ #include "snmp_core.h" #include "snmp/Pdu.h" #include "snmp/Var.h" +#if HAVE_ALGORITHM +#include +#endif Snmp::Pdu::Pdu() diff --git a/src/snmp/Var.cc b/src/snmp/Var.cc index 3a6a6b982f..a3ad52ce65 100644 --- a/src/snmp/Var.cc +++ b/src/snmp/Var.cc @@ -10,6 +10,9 @@ #include "ipc/TypedMsgHdr.h" #include "protos.h" #include "snmp/Var.h" +#if HAVE_ALGORITHM +#include +#endif Snmp::Var::Var()