X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/f48b5b729bb0a1bdf88c1eebdb7e754c4d6bac92..d01b7e436a86d4d34eff99ab9ca75f552f6a6196:/projects/sgauth/main.cpp

diff --git a/projects/sgauth/main.cpp b/projects/sgauth/main.cpp
index c78f18ed..2af78b71 100644
--- a/projects/sgauth/main.cpp
+++ b/projects/sgauth/main.cpp
@@ -35,7 +35,7 @@
 #include <iostream>
 #include <vector>
 
-#include "stg/ia_auth_c.h"
+#include "stg/ia.h"
 #include "stg/common.h"
 #include "web.h"
 #include "settings_impl.h"
@@ -239,7 +239,8 @@ clnp->Connect();
 
 while (1)
     {
-    usleep(200000);
+    struct timespec ts = {0, 200000000};
+    nanosleep(&ts, NULL);
 
     char state[20];