From cec5991f40887b4b2add594e7d82857d475224aa Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 30 Apr 2019 15:48:06 -0700 Subject: Windows: Modernize our WSAStartup usage. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure we link each application that calls WSAStartup with ws2_32.lib. Pass version 2.2 to WSAStartup. Wikipedia says it was introduced in 1996, so we should be OK. Ping-Bug: 15711 Change-Id: I431839e930e7c646669af7373789640b5180ec28 Reviewed-on: https://code.wireshark.org/review/33033 Petri-Dish: Gerald Combs Reviewed-by: Tomasz Moń Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- sharkd_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sharkd_daemon.c') diff --git a/sharkd_daemon.c b/sharkd_daemon.c index 89af1ebcb5..63898636c3 100644 --- a/sharkd_daemon.c +++ b/sharkd_daemon.c @@ -61,7 +61,7 @@ socket_init(char *path) WSADATA wsaData; int result; - result = WSAStartup(MAKEWORD(1, 1), &wsaData); + result = WSAStartup(MAKEWORD(2, 2), &wsaData); if (result != 0) { g_warning("ERROR: WSAStartup failed with error: %d", result); return INVALID_SOCKET; -- cgit v1.2.3