Skip to content
Browse files

Make timeout3 work correctly on Windows.

This test require socket initialization under Windows.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information...
1 parent 65d525a commit 9e7325431abc04ba32a16b6c57dd8f5e801c9263 @freddy77 freddy77 committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/odbc/unittests/timeout3.c
View
7 src/odbc/unittests/timeout3.c
@@ -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;

0 comments on commit 9e73254

Please sign in to comment.
Something went wrong with that request. Please try again.