#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/select.h>
+#include <unistd.h> // usleep, close
#include <csignal>
#include <cstdlib>
#include <cerrno>
#include <algorithm>
+#include "stg/common.h"
+#include "stg/stg_locker.h"
+#include "stg/tariff.h"
+#include "stg/user_property.h"
+#include "stg/settings.h"
#include "inetaccess.h"
-#include "common.h"
-#include "stg_locker.h"
-#include "tariff.h"
-#include "../../../settings.h"
-#include "../../../user_property.h"
extern volatile const time_t stgTime;