]> git.stg.codes - stg.git/blobdiff - projects/stargazer/traffcounter_impl.cpp
Fix stargazer compilation errors
[stg.git] / projects / stargazer / traffcounter_impl.cpp
index f410b1090b3413e8a039a5a091773fa1ac6105bd..45ba883e93da3dc955fdab1bacf20c0058a1e2f6 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 /* inet_aton */
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
@@ -37,9 +38,9 @@
 #include <cassert>
 #include <cstdio> // fopen and similar
 
+#include "stg/common.h"
+#include "stg/stg_locker.h"
 #include "traffcounter_impl.h"
-#include "common.h"
-#include "stg_locker.h"
 #include "stg_timer.h"
 
 #define FLUSH_TIME  (10)
@@ -938,7 +939,7 @@ return;
 //-----------------------------------------------------------------------------
 void TRAFFCOUNTER_IMPL::SetMonitorDir(const std::string & monitorDir)
 {
-TRAFFCOUNTER::monitorDir = monitorDir;
+TRAFFCOUNTER_IMPL::monitorDir = monitorDir;
 monitoring = (monitorDir != "");
 }
 //-----------------------------------------------------------------------------