mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Add comments on WSAStartup usage.
This commit is contained in:
parent
3731a400b4
commit
bd9b2fa84b
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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;
|
PGconn *conn;
|
||||||
|
|
||||||
#ifdef WIN32
|
#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;
|
WSADATA wsaData;
|
||||||
|
|
||||||
if (WSAStartup(MAKEWORD(1, 1), &wsaData))
|
if (WSAStartup(MAKEWORD(1, 1), &wsaData))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user