Skip to content

Commit bd9b2fa

Browse files
committed
Add comments on WSAStartup usage.
1 parent 3731a40 commit bd9b2fa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.305 2005/05/05 16:36:12 momjian Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.306 2005/05/05 16:40:42 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1963,7 +1963,12 @@ makeEmptyPGconn(void)
19631963
PGconn *conn;
19641964

19651965
#ifdef WIN32
1966-
/* make sure socket support is up and running */
1966+
/*
1967+
* Make sure socket support is up and running.
1968+
* Even though this is done in libpqdll.c, that is only for MSVC and
1969+
* BCC builds and doesn't work for static builds at all, so we have
1970+
* to do it in the main code too.
1971+
*/
19671972
WSADATA wsaData;
19681973

19691974
if (WSAStartup(MAKEWORD(1, 1), &wsaData))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy