From: Bruce Momjian Date: Thu, 5 May 2005 16:40:42 +0000 (+0000) Subject: Add comments on WSAStartup usage. X-Git-Tag: REL8_1_0BETA1~868 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd9b2fa84b03d876966a5a0859b45e6256e26581;p=postgresql Add comments on WSAStartup usage. --- diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index f11759927a..15bcf5f911 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.305 2005/05/05 16:36:12 momjian Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.306 2005/05/05 16:40:42 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -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))