From 9a52cec24d0e1ba7dc4e040fa80eec7c058ac603 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 22 Mar 2011 17:09:34 +0200 Subject: [PATCH] Fix compilation issues --- projects/stargazer/stg_timer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/stargazer/stg_timer.cpp b/projects/stargazer/stg_timer.cpp index b17153cf..dd0a04e1 100644 --- a/projects/stargazer/stg_timer.cpp +++ b/projects/stargazer/stg_timer.cpp @@ -62,12 +62,12 @@ while (nonstop) { #ifdef STG_TIMER_DEBUG struct timespec ts = {0, 1000000000 / TIME_SPEED}; - nanosleep(&ts); + nanosleep(&ts, NULL); //usleep(1000000 / TIME_SPEED); stgTime++; #else struct timespec ts = {0, 500000000}; - nanosleep(&ts); + nanosleep(&ts, NULL); //usleep(500000); stgTime = time(NULL); #endif @@ -109,11 +109,11 @@ int stgUsleep(unsigned long t) { #ifdef STG_TIMER_DEBUG struct timespec ts = {(t / TIME_SPEED) / 1000000, ((t / TIME_SPEED) % 1000000) * 1000}; -return nanosleep(&ts); +return nanosleep(&ts, NULL); //return usleep(t / TIME_SPEED); #else struct timespec ts = {t / 1000000, (t % 1000000) * 1000}; -return nanosleep(&ts); +return nanosleep(&ts, NULL); //return usleep(t); #endif } -- 2.44.2