Add support for building tinc with MSVC
[tinc] / src / upnp.c
index eb68998..8223b2d 100644 (file)
@@ -159,9 +159,7 @@ static void *upnp_thread(void *data) {
                time_t now = time(NULL);
 
                if(now < refresh_time) {
-                       nanosleep(&(struct timespec) {
-                               refresh_time - now, 0
-                       }, NULL);
+                       sleep_millis((refresh_time - now) * 1000);
                }
        }