From 7c134f72e3c58c29b08ceaa8e01d2d62507c6d65 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 5 May 2005 16:40:42 +0000 Subject: [PATCH] Add comments on WSAStartup usage. --- src/interfaces/libpq/fe-connect.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index a199e4b942..e8eb036dec 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -1963,7 +1963,12 @@ makeEmptyPGconn(void) PGconn *conn; #ifdef WIN32 - /* make sure socket support is up and running */ + /* + * Make sure socket support is up and running. + * Even though this is done in libpqdll.c, that is only for MSVC and + * BCC builds and doesn't work for static builds at all, so we have + * to do it in the main code too. + */ WSADATA wsaData; if (WSAStartup(MAKEWORD(1, 1), &wsaData)) -- 2.39.5