#include <simgear/io/HTTPRequest.hxx>
#include <simgear/io/sg_netChannel.hxx>
#include <simgear/misc/strutils.hxx>
-#include <simgear/misc/sg_sleep.hxx>
+#include <simgear/timing/timestamp.hxx>
using namespace simgear;
using std::cout;
int main(int argc, char* argv[])
{
HTTP::Client cl;
- SGFile* outFile;
+ SGFile* outFile = 0;
string proxy, proxyAuth;
string_list headers;
string url;
while (!req->complete()) {
cl.update();
- sleepForMSec(100);
+ SGTimeStamp::sleepForMSec(100);
}
if (req->responseCode() != 200) {