From 909ed99332b536a79dd1215a663a95be7e420bdd Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 27 Jul 2012 17:51:04 +0100 Subject: [PATCH] Ensure WSAStartup is called for metar.exe --- src/Main/metar_main.cxx | 3 +++ 1 file changed, 3 insertions(+) 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())); -- 2.39.5