Skip to content

Commit

Permalink
Make timeout3 work correctly on Windows.
Browse files Browse the repository at this point in the history
This test require socket initialization under Windows.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information
freddy77 committed Feb 24, 2014
1 parent 65d525a commit 9e73254
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/odbc/unittests/timeout3.c
Expand Up @@ -149,7 +149,12 @@ main(int argc, char *argv[])
SQLSMALLINT len;
int port;
time_t start_time, end_time;


#ifdef _WIN32
WSADATA wsaData;
WSAStartup(MAKEWORD(1, 1), &wsaData);
#endif

if (tds_mutex_init(&mtx))
return 1;

Expand Down

0 comments on commit 9e73254

Please sign in to comment.