From: James Turner Date: Fri, 27 Jul 2012 16:51:04 +0000 (+0100) Subject: Ensure WSAStartup is called for metar.exe X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=909ed99332b536a79dd1215a663a95be7e420bdd;p=flightgear.git Ensure WSAStartup is called for metar.exe --- diff --git a/src/Main/metar_main.cxx b/src/Main/metar_main.cxx index 7b904d3a2..b1a39078a 100644 --- a/src/Main/metar_main.cxx +++ b/src/Main/metar_main.cxx @@ -33,6 +33,7 @@ #include #include +#include #include 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()));