]> git.stg.codes - stg.git/blobdiff - projects/sgauth/main.cpp
Add proper header to use struct sockaddr_in in sgauthstress
[stg.git] / projects / sgauth / main.cpp
index b161a5f300ea275a98bf4bec2d884f06030a0477..2af78b71f7667e7960d6db0ec4076e24574becd6 100644 (file)
@@ -35,8 +35,8 @@
 #include <iostream>
 #include <vector>
 
 #include <iostream>
 #include <vector>
 
-#include "ia_auth_c.h"
-#include "common.h"
+#include "stg/ia.h"
+#include "stg/common.h"
 #include "web.h"
 #include "settings_impl.h"
 
 #include "web.h"
 #include "settings_impl.h"
 
@@ -239,7 +239,8 @@ clnp->Connect();
 
 while (1)
     {
 
 while (1)
     {
-    usleep(200000);
+    struct timespec ts = {0, 200000000};
+    nanosleep(&ts, NULL);
 
     char state[20];
 
 
     char state[20];