Add comments on WSAStartup usage.
authorBruce Momjian <[email protected]>
Thu, 5 May 2005 16:40:42 +0000 (16:40 +0000)
committerBruce Momjian <[email protected]>
Thu, 5 May 2005 16:40:42 +0000 (16:40 +0000)
src/interfaces/libpq/fe-connect.c

index a199e4b942c785ee1cb232e488809229073802ef..e8eb036deccb980c0baa75582d879814f47f48f5 100644 (file)
@@ -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))