projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be7e47
)
Add comments on WSAStartup usage.
author
Bruce Momjian
<
[email protected]
>
Thu, 5 May 2005 16:40:42 +0000
(16:40 +0000)
committer
Bruce Momjian
<
[email protected]
>
Thu, 5 May 2005 16:40:42 +0000
(16:40 +0000)
src/interfaces/libpq/fe-connect.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/libpq/fe-connect.c
b/src/interfaces/libpq/fe-connect.c
index a199e4b942c785ee1cb232e488809229073802ef..e8eb036deccb980c0baa75582d879814f47f48f5 100644
(file)
--- 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))