]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SMP SNMP
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Sun, 6 Feb 2011 16:39:53 +0000 (18:39 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Sun, 6 Feb 2011 16:39:53 +0000 (18:39 +0200)
The SunStudio compiler requires the <algorithm> include file to allow use the
std::copy

configure.ac
src/snmp/Pdu.cc
src/snmp/Var.cc

index 27454acbf680cd34d175f5b0081a453de5b6afab..e09e6d814bbea9762890345b4fa49952d451f82b 100644 (file)
@@ -2219,6 +2219,7 @@ AC_HEADER_DIRENT
 AC_HEADER_STDC
 
 AC_CHECK_HEADERS( \
+  algorithm \
   arpa/inet.h \
   arpa/nameser.h \
   assert.h \
index db1af89d284f7991f39858f4f8ee54234a22f356..eb3d12ff9004e8808dd6a62f9a6cfa49769bfdaa 100644 (file)
@@ -12,6 +12,9 @@
 #include "snmp_core.h"
 #include "snmp/Pdu.h"
 #include "snmp/Var.h"
+#if HAVE_ALGORITHM
+#include <algorithm>
+#endif
 
 
 Snmp::Pdu::Pdu()
index 3a6a6b982f5a198f8c1c27a99bcb80bfe74d8304..a3ad52ce65b85b12e10110860659c5d66e07700b 100644 (file)
@@ -10,6 +10,9 @@
 #include "ipc/TypedMsgHdr.h"
 #include "protos.h"
 #include "snmp/Var.h"
+#if HAVE_ALGORITHM
+#include <algorithm>
+#endif
 
 
 Snmp::Var::Var()