fixed Solaris build
authorVictor Kirhenshtein <victor@netxms.org>
Tue, 3 Oct 2017 19:57:46 +0000 (22:57 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Tue, 3 Oct 2017 19:57:46 +0000 (22:57 +0300)
src/agent/subagents/sunos/process.cpp

index 3fd760b..6f21891 100644 (file)
@@ -392,10 +392,10 @@ static BOOL GetProcessAttribute(pid_t nPid, int nAttr, int nType, int nCount, QW
       switch(nType)
       {
          case INFOTYPE_MIN:
-            *pqwValue = min(*pqwValue, qwValue);
+            *pqwValue = std::min(*pqwValue, qwValue);
             break;
          case INFOTYPE_MAX:
-            *pqwValue = max(*pqwValue, qwValue);
+            *pqwValue = std::max(*pqwValue, qwValue);
             break;
          case INFOTYPE_AVG:
             *pqwValue = (*pqwValue * nCount + qwValue) / (nCount + 1);