Browse Source

Fix builds where HAVE_C___ATOMIC is not defined. (#12240)

vkalintiris 3 years ago
parent
commit
bb9dc984ef
1 changed files with 3 additions and 1 deletions
  1. 3 1
      ml/Host.h

+ 3 - 1
ml/Host.h

@@ -31,7 +31,9 @@ public:
             RRDSET_TYPE_LINE
             RRDSET_TYPE_LINE
         );
         );
 
 
-        rrdset_flag_set(AnomalyRateRS, RRDSET_FLAG_HIDDEN);
+        AnomalyRateRS->flags = static_cast<RRDSET_FLAGS>(
+            static_cast<int>(AnomalyRateRS->flags) | RRDSET_FLAG_HIDDEN
+        );
     }
     }
 
 
     RRDHOST *getRH() { return RH; }
     RRDHOST *getRH() { return RH; }