]> git.stg.codes - stg.git/commitdiff
Fix compilation.
authorMaksym Mamontov <madf@madf.info>
Mon, 16 Dec 2024 15:59:03 +0000 (17:59 +0200)
committerMaksym Mamontov <madf@madf.info>
Mon, 16 Dec 2024 15:59:03 +0000 (17:59 +0200)
projects/stargazer/traffcounter_impl.cpp

index 70ade1ae91c2ee941a569a13244ba1dcd5fac0e6..f983d6affb7ef20f7e3a8adac09f2625dd613abb 100644 (file)
  $Author: faust $
  */
 
-/* inet_aton */
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-#include <csignal>
-#include <cassert>
-#include <cstdio> // fopen and similar
-#include <cstdlib> // strtol
-
 #include "stg/common.h"
 #include "stg/const.h" // MONITOR_TIME_DELAY_SEC
 #include "traffcounter_impl.h"
 #include "users_impl.h"
 #include "async_pool.h"
 
+#include <algorithm>
+#include <csignal>
+#include <cassert>
+#include <cstdio> // fopen and similar
+#include <cstdlib> // strtol
+
+/* inet_aton */
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
 #define FLUSH_TIME  (10)
 #define REMOVE_TIME  (31)