1
0
Fork 0

Ensure WSAStartup is called for metar.exe

This commit is contained in:
James Turner 2012-07-27 17:51:04 +01:00
parent ecfbb951ae
commit 909ed99332

View file

@ -33,6 +33,7 @@
#include <simgear/io/HTTPClient.hxx>
#include <simgear/io/HTTPRequest.hxx>
#include <simgear/io/raw_socket.hxx>
#include <simgear/timing/timestamp.hxx>
using namespace std;
@ -547,6 +548,8 @@ int main(int argc, char *argv[])
string proxy_host, proxy_port;
getproxy(proxy_host, proxy_port);
Socket::initSockets();
HTTP::Client http;
http.setProxy(proxy_host, atoi(proxy_port.c_str()));