diff --git a/simgear/io/httpget.cxx b/simgear/io/httpget.cxx index e10a29b4..b4934b8d 100644 --- a/simgear/io/httpget.cxx +++ b/simgear/io/httpget.cxx @@ -12,7 +12,7 @@ #include #include #include -#include +#include using namespace simgear; using std::cout; @@ -156,7 +156,7 @@ int main(int argc, char* argv[]) while (!req->complete()) { cl.update(); - sleepForMSec(100); + SGTimeStamp::sleepForMSec(100); } if (req->responseCode() != 200) { diff --git a/simgear/io/test_HTTP.cxx b/simgear/io/test_HTTP.cxx index 048cbb41..988f8bba 100644 --- a/simgear/io/test_HTTP.cxx +++ b/simgear/io/test_HTTP.cxx @@ -12,7 +12,6 @@ #include #include #include -#include using std::cout; using std::cerr; @@ -321,7 +320,7 @@ void waitForComplete(HTTP::Client* cl, TestRequest* tr) if (tr->complete) { return; } - sleepForMSec(1); + SGTimeStamp::sleepForMSec(1); } cerr << "timed out" << endl; @@ -335,7 +334,7 @@ void waitForFailed(HTTP::Client* cl, TestRequest* tr) if (tr->failed) { return; } - sleepForMSec(1); + SGTimeStamp::sleepForMSec(1); } cerr << "timed out waiting for failure" << endl;