Commit e93f2d88c04fc651fc12ec82a0655ccdae34426e

Authored by Stéphane Raimbault
1 parent c0cac3d9

Request for Windows Sockets specification version 2.2 instead of 2.0

Thanks to Pavel Mazniker for the report.
Showing 1 changed file with 1 additions and 1 deletions
src/modbus-tcp.c
... ... @@ -68,7 +68,7 @@ static int _modbus_tcp_init_win32(void)
68 68 /* Initialise Windows Socket API */
69 69 WSADATA wsaData;
70 70  
71   - if (WSAStartup(MAKEWORD(2, 0), &wsaData) != 0) {
  71 + if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {
72 72 fprintf(stderr, "WSAStartup() returned error code %d\n",
73 73 (unsigned int)GetLastError());
74 74 errno = EIO;
... ...